Re: getSelectionCoordinates() not working properly with automatically generated ROIs
Posted by
Rasband, Wayne (NIH/NIMH) [E] on
Jan 09, 2014; 9:10pm
URL: http://imagej.273.s1.nabble.com/getSelectionCoordinates-not-working-properly-with-automatically-generated-ROIs-tp5006070p5006071.html
On Jan 9, 2014, at 11:24 AM, voidspaces wrote:
> Hi everyone
>
> Does anyone know why getSelectionCoordinates(x,y) in my code would return
> only 4 points' coordinates after creating an oval with makeOval(a,b,c,d)?
> The resulting 4 points I get are the corners of the oval's bounding
> rectangle.
>
> If instead I run getSelectionCoordinates(x,y) on an oval selected manually I
> would get all the coordinates as expected.
This bug is fixed in the latest daily build (1.48p9), or you can work around it by using Edit>Selection>Interpolate, for example
run("Interpolate", "interval=1");
getSelectionCoordinates(x,y);
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html