Convert a set of points into an ROI
Posted by Ghislain Bonamy on May 11, 2009; 6:10pm
URL: http://imagej.273.s1.nabble.com/Convert-a-set-of-points-into-an-ROI-tp3692520.html
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