Package ij.gui

Class EllipseRoi

All Implemented Interfaces:
Serializable, Cloneable

public class EllipseRoi extends PolygonRoi
Elliptical region of interest.
See Also:
  • Constructor Details

    • EllipseRoi

      public EllipseRoi(double x1, double y1, double x2, double y2, double aspectRatio)
    • EllipseRoi

      public EllipseRoi(int sx, int sy, ImagePlus imp)
  • Method Details

    • draw

      public void draw(Graphics g)
      Overrides:
      draw in class PolygonRoi
    • grow

      protected void grow(int sx, int sy)
      Overrides:
      grow in class PolygonRoi
    • handleMouseUp

      protected void handleMouseUp(int screenX, int screenY)
      Description copied from class: PolygonRoi
      With segmented selections, ignore first mouse up and finalize when user double-clicks, control-clicks or clicks in start box.
      Overrides:
      handleMouseUp in class PolygonRoi
    • moveHandle

      protected void moveHandle(int sx, int sy)
      Overrides:
      moveHandle in class PolygonRoi
    • isHandle

      public int isHandle(int sx, int sy)
      Description copied from class: PolygonRoi
      Returns a handle number if the specified screen coordinates are inside or near a handle, otherwise returns -1.
      Overrides:
      isHandle in class PolygonRoi
    • getLength

      public double getLength()
      Returns the perimeter of this ellipse.
      Overrides:
      getLength in class PolygonRoi
    • getParams

      public double[] getParams()
      Returns x1, y1, x2, y2 and aspectRatio as a 5 element array.
    • getFeretValues

      public double[] getFeretValues()
      Description copied from class: Roi
      Caculates "Feret" (maximum caliper width), "FeretAngle" and "MinFeret" (minimum caliper width), "FeretX" and "FeretY".
      Overrides:
      getFeretValues in class Roi
    • subPixelResolution

      public boolean subPixelResolution()
      Always returns true.
      Overrides:
      subPixelResolution in class PolygonRoi