Login  Register

Re: Smoothing a ROI

Posted by Giuseppe Lucarelli on Sep 09, 2014; 11:54am
URL: http://imagej.273.s1.nabble.com/Smoothing-a-ROI-tp3685699p5009554.html

Thank you so much Gabriel!

On 9 September 2014 20:56, Gabriel Landini [via ImageJ] <[hidden email]> wrote:
On Monday 08 Sep 2014 18:41:17 giuseppe3 wrote:
> I had a play with your ROI smoothing macro and it works well for me.
>
> However, I don't understand what the code is doing in the second part of the
> macro when you check for overlapping coordinates.
> Could please explain.

Hi,
It gets rid of overlapping coordinates of the ROI that do not contribute to
the actual shown shape. If you run consecutively the macro several times you
end up with lots of repeated ROI points in the ROI chain that do not make a
difference to the ROI that you see. The code gets rid of those.
If there are no overlapping points it uses the original smoothed chain, if
there are, it uses the thinned chain.

Regards

Gabriel

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html



If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/Smoothing-a-ROI-tp3685699p5009553.html
To unsubscribe from Smoothing a ROI, click here.
NAML



--
Giuseppe Lucarelli
Biochemistry PhD student
Prescott/Devenish Lab, Bld 13 D224a
PH  990 53785

[hidden email]