Conversion to 32-bit changes the contrast range

Posted by Stein Rørvik on
URL: http://imagej.273.s1.nabble.com/Conversion-to-32-bit-changes-the-contrast-range-tp5021625.html

There is a bug in the Stack - Reverse command.
The contrast range is reset, so that the current min/max values are lost.

Demo macro:
------------------------------
print("\\Clear");

run("T1 Head (2.4M, 16-bits)");
setSlice(nSlices/2);
getMinAndMax(min, max);
print(min, max);

run("Reverse");
setSlice(nSlices/2);
getMinAndMax(min, max);
print(min, max);
------------------------------

I am using daily build ImageJ 1.52k with Java 1.6 on Windows 7/64-bit.


Stein



--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html