Login  Register

Re: A bug from the new "Auto_Threshold"?

Posted by Gabriel Landini on May 31, 2009; 4:02pm
URL: http://imagej.273.s1.nabble.com/A-bug-from-the-new-Auto-Threshold-tp3692373p3692376.html

On Sunday 31 May 2009, Rogerio Hein wrote:
> OK, it works! But it is necessary to manually include the line:
> run("Convert to Mask");

No, sorry this was my confusion. I thought that you were using the new "Adjust
Threshold" command rather than my "Auto Threshold" plugin.

So to answer your question:
After converting the image to binary with the Auto Threshold plugin and runing
the Watershed separation, you still need to set the threshold in the binary
image in red, so the particle analyser knows what is the particle phase to be
analysed.
Either:
setThreshold(255, 255);
or
setThreshold(0, 0);

Depending on whether your objects are white or black in the binary image.

I hope that this answers the question.

Cheers

Gabriel