Set min/max does not work via the GUI for large 32-bit images
Posted by
Stein Rørvik on
Jan 16, 2018; 11:03pm
URL: http://imagej.273.s1.nabble.com/Set-min-max-does-not-work-via-the-GUI-for-large-32-bit-images-tp5019893.html
I found a bug which seems to be connected to the GUI since it works fine in a macro:
If you try to set the contrast range (Min/Max values) in the Brightness/Contrast dialog,
the values always revert to the previous values if the image is 32 bit and the edges are several thousand pixels length.
Here is a macro reproducing the issue:
run("M51 Galaxy (177K, 16-bits)");
run("32-bit");
run("Scale...", "x=10 y=10 interpolation=Bilinear average create");
run("Brightness/Contrast...");
waitForUser("Now please try to set a fixed min/max range of 0/1000\n using the Set button in the Brightness/Contrast dialog");
//this does not work, the min/max values revert to the previous values
//setting it via macro works fine however:
//setMinAndMax(0, 1000);
I am using daily build ImageJ 1.51u with Java 1.6 on Windows 7/64-bit.
Stein
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html