Re: Disjoint ROI selection using macro language

Posted by BenTupper on
URL: http://imagej.273.s1.nabble.com/Disjoint-ROI-selection-using-macro-language-tp3692854p3692871.html

Great ideas!  Thanks!


On Apr 17, 2009, at 9:44 AM, Michael Schmid wrote:

> Hi Ben,
>
> just a short remark:
> If you want to combine particles closer than a given distance,  
> create a mask and dilate it. If you use the Process>Filters>Maximum  
> for dilating, it won't be a square but a circular kernel.
>
> For large distances, thresholding the distance map of the inverted  
> mask will be faster than 'max'. Set the threshold range to 0...radius.
>
> Michael
> ________________________________________________________________
>
> On 17 Apr 2009, at 15:02, Ben Tupper wrote:
>
>> In case you are interested, I want to determine the smallest  
>> distance between particle perimeters - if two or more are close  
>> enough then I want to consider them a single object (like a chain  
>> of pearls).  I think this macro ...

Ben Tupper