Re: setThreshold Macro command for fluorescent microscopy

Posted by Gabriel Landini on
URL: http://imagej.273.s1.nabble.com/setThreshold-Macro-command-for-fluorescent-microscopy-tp5016342p5016350.html

On Friday 06 May 2016 11:10:16 you wrote:

> Hello,
>
> I am trying to reduce the threshold of multiple microscope images by using
> the following script:
>
> run("Invert");
> run("8-bit");
> setThreshold(0, 162, "black & white");
> run("Measure");
>
> however, the function only converts the images to black and white and have
> not adjusted the threshold. How can I change the code to set my desired
> threshold?


You are specifying to show as B&W (the image is not converted to B&W, only
shown in that LUT.
Try this instead:
setThreshold(0, 162, "Red");

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