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

Fix restoring intensity when showing a multi-channel image with deselected channels #576

Merged
merged 6 commits into from
Oct 5, 2023

Conversation

yoda-vid
Copy link
Collaborator

@yoda-vid yoda-vid commented Oct 5, 2023

The image overlayer expects all channel settings to be given in absolute rather than relative position, but the PlotEditor has supplied them relative to only the images shown. If a preceding channel was deselected, prior channel-specific settings would be given at the incorrect index and either applied to the wrong channel or ignored if the channel was not shown. Fix by converting these settings to absolute channel order for the overlayer. Update the overlayer docs to clarify the expected channel order.

This PR includes fixes for #572 and additional changes:

  • Extend large range sliders to the brightness controls
    -Fix changing slider limits
  • Start unit testing the np_io module

The brightness control uses the same limits as for the intensity controls and should therefore use large range sliders as well.
Now that the image adjustment sliders allow the full range, the limits no longer need to be adapted when switching controls for another image.
The image overlayer expects all channel settings to be given in absolute rather than relative position, but the PlotEditor has supplied them relative to only the images shown. If a preceding channel was deselected, prior channel-specific settings would be given at the incorrect index and either applied to the wrong channel or ignored if the channel was not shown. Fix by converting these settings to absolute channel order for the overlayer. Update the overlayer docs to clarify the expected channel order.
- Add a parameter to accept 3D+ vs 5D images
- Add unit testing script for `np_io` module, starting with this function
- Use this function when setting up images in the PlotEditor
@yoda-vid yoda-vid added the bug Something isn't working label Oct 5, 2023
@yoda-vid yoda-vid added this to the v1.6.0 milestone Oct 5, 2023
@yoda-vid yoda-vid merged commit bacded9 into master Oct 5, 2023
16 checks passed
@yoda-vid yoda-vid deleted the fix_restoring_intensity branch October 6, 2023 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant