setThreshold Macro command for fluorescent microscopy
Posted by Morange on
URL: http://imagej.273.s1.nabble.com/setThreshold-Macro-command-for-fluorescent-microscopy-tp5016342.html
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?
Edit: another problem that I had was some of the images were inverted again additional to the first "Invert" after the setThreshold has been called.