java.lang.Object
ij.process.EllipseFitter
This class fits an ellipse to an ROI.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
Angle in degreesdouble
Length of major axisdouble
Length of minor axisint
Initialized by makeRoi()double
Angle in radiansdouble
X centroidint[]
Initialized by makeRoi()double
X centroidint[]
Initialized by makeRoi() -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Draws the ellipse on the specified image.void
fit
(ImageProcessor ip, ImageStatistics stats) Fits an ellipse to the current ROI.void
Generates the xCoordinates, yCoordinates public arrays that can be used to create an ROI.
-
Field Details
-
xCenter
public double xCenterX centroid -
yCenter
public double yCenterX centroid -
major
public double majorLength of major axis -
minor
public double minorLength of minor axis -
angle
public double angleAngle in degrees -
theta
public double thetaAngle in radians -
xCoordinates
public int[] xCoordinatesInitialized by makeRoi() -
yCoordinates
public int[] yCoordinatesInitialized by makeRoi() -
nCoordinates
public int nCoordinatesInitialized by makeRoi()
-
-
Constructor Details
-
EllipseFitter
public EllipseFitter()
-
-
Method Details
-
fit
Fits an ellipse to the current ROI. The 'stats' argument, currently not used, can be null. The fit parameters are returned in public fields. -
drawEllipse
Draws the ellipse on the specified image. -
makeRoi
Generates the xCoordinates, yCoordinates public arrays that can be used to create an ROI.
-