Posted by
Rogerio Hein-2 on
May 31, 2009; 3:33pm
URL: http://imagej.273.s1.nabble.com/A-bug-from-the-new-Auto-Threshold-tp3692373p3692375.html
OK, it works! But it is necessary to manually include the line:
run("Convert to Mask");
I was using, for instance:
run("Auto Threshold", "method=Moments stack");
run("Watershed", "stack");
run("Set Measurements...", "area perimeter bounding fit shape feret's
redirect=None decimal=2");
run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00
show=Outlines display exclude clear include summarize record stack");
As displayed by macro recorder tool. Now, with:
run("Auto Threshold", "method=Moments stack");
run("Convert to Mask");
run("Watershed", "stack");
run("Set Measurements...", "area perimeter bounding fit shape feret's
redirect=None decimal=2");
run("Analyze Particles...", "size=0-Infinity circularity=0.00-1.00
show=Outlines display exclude clear include summarize record stack");
It works fine for stacks (8-bit, 2080x1540, large "n" images). Many thanks,
Gabriel!
Best regards,
Rogerio
----- Original Message -----
From: "Gabriel Landini" <
[hidden email]>
To: <
[hidden email]>
Sent: Sunday, May 31, 2009 11:45 AM
Subject: Re: A bug from the new "Auto_Threshold"?
> On Sunday 31 May 2009, Rogerio Hein wrote:
>> Dear friends,
>>
>> I really enjoy the new Auto_Threshold plugin from Gabriel Landini, as a
>> drop down menu for 16 different thresholding methods since 1.42p, a great
>> tool! But I have noticed that its use combined to watershed tool
>> (Process>Binary>Watershed) results in empty measurements tables in most
>> cases. If the watershed tool is not applied, some of displayed objects
>> from
>> binary images are not considered for particle analysis. It occurs, as I
>> tested, in versions 1.41o (as a plugin), 1.42o (as a plugin), 1,42p and
>> even for the daily build 1.42q, running under MS Windows XP, XP-64 and
>> Vista. Can somebody check it, please?
>>
>> Thanks in advance,
>>
>> Rogerio Hein
>
> This seems to work OK in my setup
>
> run("AuPbSn 40 (56K)");
> setAutoThreshold("Huang");
> run("Convert to Mask");
> run("Watershed");
>
> Please post a macro that shows the problem (and upload an image somewhere
> so
> we can test it).
>
> Cheeers
>
> G.