Login  Register

Analyzer, perimeter and filling (was Re: magic wand)

Posted by BenTupper on Jun 12, 2009; 1:52pm
URL: http://imagej.273.s1.nabble.com/magic-wand-tp3692147p3692153.html

Hello,

A heartfelt thanks to Michael for Versatile Wand - very nice!  But it  
has me thinking which invariably leads to confusion!

I want to make sure that I have things straight in my head regarding  
the functionality of (a) the built-in Wand functionality, (b) the  
built-in FloodFill, and (c) "Analyze particles..." .   And then I have  
a question.  First some statements...

(1) Wand currently only performs 8-connected searches,

(2) FloodFill uses 4- or 8- connected which the user selects by double-
clicking the bucket icon,

(3) "Analyze particles..."  (as Analyzer, or is it ParticleAnalyzer?  
or PolygonFiller?) uses FloodFill and Wand but flood filling is only 8-
connected.

Playing with this test image (http://www.tidewater.net/~pemaquid/test.tif 
) I think this last statement is always true, but I would like to get  
confirmation from others.

My question is how can I make "Analyze particles..."  optionally work  
in a 4-connected manner.  Does it require a major reconfiguration or  
simple tinkering?

Thanks!
Ben



On Jun 4, 2009, at 12:17 PM, Michael Schmid wrote:

> Hi Gabriel,
>
> sorry, the statement
>    import ij.gui.Wand;
> was missing. Please insert it at the beginning.
> I had my own Wand class in the plugins and did not notice.
>
> I had tried to upload a corrected version, but this had failed.
>
> Michael
> ________________________________________________________________
>
> On 4 Jun 2009, at 12:52, Gabriel Landini wrote:
>
>> On Thursday 04 June 2009  11:48:26 Michael Schmid wrote:
>>> an updated version of the magic wand that I posted to the list a  
>>> week
>>> ago is now available as 'Versatile Wand' at
>>>   http://imagejdocu.tudor.lu/doku.php?
>>> id=plugin:segmentation:versatile_wand:start
>>
>> /home/gabriel/ImageJ/plugins/Segmentation/Versatile_Wand.java:333:  
>> cannot find
>> symbol
>> symbol  : class Wand
>> location: class Versatile_Wand
>>            Wand w = new Wand(maskIp);
>>            ^
>> /home/gabriel/ImageJ/plugins/Segmentation/Versatile_Wand.java:333:  
>> cannot find
>> symbol
>> symbol  : class Wand
>> location: class Versatile_Wand
>>            Wand w = new Wand(maskIp);
>>                         ^
>> 2 errors
>> 1 warning
>>
>>
>> Cheers
>> Gabriel

Ben Tupper