|
Hello all,
I am very beginner in ImageJ macros programing. I would like to know how can I make a oval shape of defined radius from the co-ordinates obtained from another macros in Image J.
I have used this macro for obtaining the co-ordinates:
if( s == -1 ) {
exit("There was no selection.");
} else if( s != 10 ) {
exit("The selection wasn't a point selection.");
} else {
getSelectionCoordinates(xPoints,yPoints);
x = xPoints[0];
y = yPoints[0];
showMessage("Got coordinates ("+x+","+y+")");
}
Now the question is how can I make a circle of defined radius using the co-ordinates (x, y). Please let me know. That would be really helpful.
Thanks, Best Regards, Abhiyan
|