// Demonstates how to use the Roi.getFeretPoints(xpoints,ypoints) // function, added in ImageJ 1.52m. It creates new x and y arrays // with the end points of the MaxFeret in array elements [0], [1] // and MinFeret in [2], [3]. These points are uncalibrated (pixel // coordinates, but not necessarily integer). newImage("Untitled", "8-bit black", 500, 500, 1); makeEllipse(115, 118, 363, 366, 0.60); Roi.getFeretPoints(x,y); setColor("red"); Overlay.drawLine(x[0], y[0], x[1], y[1]); Overlay.show(); Overlay.drawLine(x[2], y[2], x[3], y[3]); Overlay.show();