Re: Applying modified LUT to 16-bit image in macro
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Sep 25, 2015; 2:20am
URL: http://imagej.273.s1.nabble.com/Applying-modified-LUT-to-16-bit-image-in-macro-tp5013606p5014454.html
> Hi all,
>
> I use the latest version of Fiji to open a 16-bit grayscale image, change the minimum/maximum displayed values under Image -> Adjust -> Brightness/Contrast and then hit "Apply", which gives me a 16-bit image with a modified LUT. However, when I try to do the same thing in a macro...
>
> setMinAndMax(0, 20000);
> run("Apply LUT");
>
> ... I get an error message saying that:
>
> "Apply LUT" requires an image of type: 8-bit grayscale, 8-bit color, RGB color.
>
> I don't understand why I can perform the 16-bit image conversion manually, but not in a macro. Does anyone know a solution to this problem?
Use the Help>Upgrade ImageJ command to upgrade to the latest ImageJ daily build (1.50c15), which fixes this bug.
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html