Login  Register

Re: Applying modified LUT to 16-bit image in macro

Posted by Gabriel Landini on Sep 24, 2015; 10:17pm
URL: http://imagej.273.s1.nabble.com/Applying-modified-LUT-to-16-bit-image-in-macro-tp5013606p5014452.html

On Thursday 24 Sep 2015 14:54:14 MatthewThompson wrote:
> If you convert the image to 8-bit first, the issue will be resolved.
>
> Use:
>
> run("8-bit"); //Equivalent to Image > Type > 8-bit
> setMinAndMax(0, 20000);
> run("Apply LUT");

I think your suggestion would not work.
You need to first set the min and max in the 16 bit image, so the range for
the greyscale which displays the 16bit image is set, only then convert to 8
bit.
In the code above, by the time you set min and max to the range of 0 to 20000,
the image (which is 8bit after the first macro line), has only 256 levels.

Cheers

Gabriel

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