bioformats
bioformats copied to clipboard
VirtualImagePlus: retain contrast in setSlice
Problem
When one loads a virtual image stack and changes the contrast by e.g. the contrast dialog, the changes are lost when the stack is scrolled, which makes it very inconvenient to look at sequences which need contrast adjustment. In classical ImageJ the contrast is retained. I noticed this behavior with 16 and 32 bit bigtiff files but assume it happens for other file formats as well.
This issue has been mentioned also in forum.image.sc.
Solution
If one comments these lines, all works as expected. The problem seems to be in the fact that proc.getChild()
's min and max values do not reflect the set display range, so when it is used in setProcessor it is lost.
Thanks, @tfarago. Triggered the GHA workflows.
Great, thanks! I will arrange for the CLA to be signed and let you know.
Turns out it will take a while. I will be back at work 22.08., sort it out and get in touch after that. Sorry for the delay...
CLA signed and sent.
Thanks @tfarago, this will be included in the next 6.10.2 release aimed for a late September release
This pull request has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/b-c-for-a-whole-virtual-stack-cont/57811/11
This pull request has been mentioned on Image.sc Forum. There might be relevant details there:
https://forum.image.sc/t/b-c-for-a-whole-virtual-stack-cont/57811/17