Re: Smoothing a ROI
Posted by
Gabriel Landini on
Sep 09, 2014; 10:56am
URL: http://imagej.273.s1.nabble.com/Smoothing-a-ROI-tp3685699p5009553.html
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