Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wip] layer values at cursor position #229

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

paulhfu
Copy link
Contributor

@paulhfu paulhfu commented Apr 3, 2019

Display the respective values of a selected amount of layers at current position of cursor in image view.

@paulhfu paulhfu force-pushed the label-info-at-cursor-position branch from 47ab62c to 11b3150 Compare April 3, 2019 14:25
image = self.editor.imageViews[imgView].scene()._tileProvider._cache.layer(stack_id, layer_id,
tile_id)
if image is not None:
colorVal = image.pixelColor(x%blockSize,y%blockSize)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @m-novikov, this is how I am getting the data right now. Hacking into tileProvider. As we discussed, these are not the raw dataSources...

@paulhfu paulhfu force-pushed the label-info-at-cursor-position branch from 3534c53 to 2b6551d Compare April 8, 2019 13:58
@paulhfu
Copy link
Contributor Author

paulhfu commented Apr 20, 2019

Hey @k-dominik, sorry, I was too quick telling you that this can be looked at. There is still a bug which needs some attention.

@paulhfu paulhfu force-pushed the label-info-at-cursor-position branch from 2ae49a7 to fe2a0d8 Compare April 29, 2019 11:40
@paulhfu paulhfu force-pushed the label-info-at-cursor-position branch from 05766bd to 094a9b5 Compare June 14, 2019 16:06
@paulhfu paulhfu force-pushed the label-info-at-cursor-position branch 4 times, most recently from 2208c0b to ed0d755 Compare October 7, 2019 08:35
@paulhfu paulhfu force-pushed the label-info-at-cursor-position branch from 55b205b to 03e0310 Compare October 11, 2019 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants