Documentation of 'ij.gui.EllipseRoi' Java class
EllipseRoi
ij.gui

Class EllipseRoi

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.awt.Point>


    public class EllipseRoi
    extends PolygonRoi
    This class implements the ellipse selection tool.
    See Also:
    Serialized Form
    • Constructor Detail

      • EllipseRoi

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

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

      • draw

        public void draw(java.awt.Graphics g)
        Overrides:
        draw 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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.