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

silx.gui.plot: Added getValueData method to PlotWidget image items #3378

Merged
merged 3 commits into from
Feb 23, 2021

Conversation

t20100
Copy link
Member

@t20100 t20100 commented Feb 22, 2021

This PR adds a getValueData method to all image items.
This method returns a 2D array of float (or int). It allows to simplify code requiring 2D data by avoiding handling RGBA to intensity conversion at multiple places.
It also paves the way to mask associated to an image, since it allows to return the masked array (with NaNs where masked) rather than having to do this at multiple places.

This PR is extracted from PR #3369 in order to split the changes in smaller chunks.

@t20100 t20100 added this to the 0.15 milestone Feb 22, 2021
@vallsv vallsv merged commit cb53e2b into silx-kit:master Feb 23, 2021
@t20100 t20100 deleted the getValueData branch March 3, 2021 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants