Re: Iterator over Roi points anywhere?

Posted by Marcel on
URL: http://imagej.273.s1.nabble.com/Iterator-over-Roi-points-anywhere-tp5016087p5016088.html

I posted a similar solution in Jython here:

http://forum.imagej.net/t/pointroi-input-different-from-output-point-positions/1038

So you can get, e.g., points, etc., in Java with:

Roi roi = im.getRoi();
int [] xArr = roi.getPolygon().xpoints
int [] yArr = roi.getPolygon().ypoints

See:

http://javadoc.imagej.net/ImageJ1/ij/gui/PolygonRoi.html#getNCoordinates%28%29