Posted by
ctrueden on
May 11, 2009; 6:35pm
URL: http://imagej.273.s1.nabble.com/Convert-a-set-of-points-into-an-ROI-tp3692520p3692523.html
Hi Ghislain,
If your shape is convex, then all you need is to find the convex hull of
your collection of points. There are general algorithms for doing this, but
you may be able to take a shortcut depending on the structure of your data.
Do you have interior points, or do all your points lie on the hull? The
purpose of a ROI is generally to differentiate between two classes: "inside"
and "outside." Is that your sole need here?
-Curtis
On Mon, May 11, 2009 at 1:10 PM, Ghislain Bonamy <
[hidden email]> wrote:
> I am trying to gage wether it is feasible to convert a set of points into
> an
> ROI. The set of points is not a polygon (ie, the order is not provided in a
> way that each point can be connected to the next one). Instead, data
> provided contains the coordinates for each points of the shape contours,
> sorted by increasing row (ie. not following the contour).
>
> I have seen that the ImageJ ROI model supports several models other than
> Polygon: Poly-line, freehand, Traced, segmentedline, etc.
>
> Is it actually possible to convert my set of points into an ROI? If so what
> type do I need to use. Are there any explenations as to how these different
> models differ? Any exemple some code would much appreciated.
>
> If not, anyone has an idea where I can find a start point for
> contour-tracing of my shape in Java?
>
> Best,
>
> Ghislain
> --
> View this message in context:
>
http://n2.nabble.com/Convert-a-set-of-points-into-an-ROI-tp2864581p2864581.html> Sent from the ImageJ mailing list archive at Nabble.com.
>