-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add Hilo Checkbox for LUT Toggling in Channel Slider View #583
Conversation
This seems to be working OK, but it is causing a couple of things to go wrong with the Undo/Redo functionality. The Undo/Redo code listens for any So, I would simply ignore this step and I think the code will still work OK? The Undo/Redo code tries to batch together multiple changes that happen "at the same time" (within 10 millisecs of each other). This is so that when you edit multiple panels at once, it's all handled under a single Undo action. When you do this several times very quickly, e.g. 3 times for a 3-channel image, all of these changes get bundled into a single Undo action. However, the Undo code doesn't apply those changes in reverse order when you undo (this is a previously hidden bug in the undo code). So, when you hit Undo, it undoes the change in channel 1, then channel 2, then channel 3. So, for a fresh Figure, if you click the With this
Please feel free to include this change in this PR. However, it feels wrong to make several separate calls to Another bit of info that should be in the docs: It is generally better to call I made these changes and it seems to be working (even without the undo fix above): Here's all the changes I have...
Hope that all makes sense?! |
Forgot to say: Thanks Mina for your first PR! |
Hello Will, Thank you for your feedback and suggestions. They were incredibly helpful, especially in loading the images and applying the necessary functionalities. I also included your bug fix of createUndo in undo.js Best regards, |
This is working fine now, thanks.
Am I right in thinking this would improve the feature? If so, do you want to try it? (I can give pointers if you need)? |
Hi @will-moore , But about restoring the active state of the channels, I'm unsure. |
@Tom-TBT @MinaEnayat this works nicely and I like it. I think it works well to revert to the previously active channels when you turn HiLo off. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, 👍
imho, it works logically as it is now (return to the active/inactive state as it was before). lgtm, Thank you |
Hello,
I've implemented a new feature to add a Hilo checkbox to the channel slider view.
This checkbox allows users to rapidly toggle the Hilo LU across all channels.
When the checkbox is checked, the Hilo LUT (hilo.lut) is applied to all channels, and when unchecked, the original colors are restored.
Please review the changes, and feel free to provide any feedback or suggestions.
Mina
@Tom-TBT