Conversion to 32-bit changes the contrast range

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Conversion to 32-bit changes the contrast range

Stein Rørvik
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