How is Display Range selected for 16Bit Images?
Posted by James Cheong on
URL: http://imagej.273.s1.nabble.com/How-is-Display-Range-selected-for-16Bit-Images-tp3701851.html
Hi Everyone
I've got a burning question about the display range of ImageJ and it would
be great if someone can point me in the right direction.
I've been going through the source code but I still can't figure out how
ImageJ selects min and max to display a 16 bit image in.
I've ran ImageJ in debug mode and opened a 16bit image, but I can't find the
line of code that decides how the display min and max are selected.
Gone through the Opener, TiffDecoder, and FileOpener class but without any
success.
I understand from the ContrastAdjuster code that there is a defaultMin and
defaultMax variable, which are the absolute min and max pixel values of the
image, but not usually the values used for displaying. Instead, the values
of min2 and max2 are used when you first open the image. So my question
is... how is it that
ip.getMin();
ip.getMax();
returns different values before and after ip.resetMinAndMax()?
It surely means that some "tempering" was done to the Min and Max somewhere
in the code when an image is opened...
Would be absolutely great if someone can help me out!
Thanks!
: )
James