public class EllipseFitter extends Object
Modifier and Type | Field and Description |
---|---|
double |
angle
Angle in degrees
|
double |
major
Length of major axis
|
double |
minor
Length of minor axis
|
int |
nCoordinates
Initialized by makeRoi()
|
double |
theta
Angle in radians
|
double |
xCenter
X centroid
|
int[] |
xCoordinates
Initialized by makeRoi()
|
double |
yCenter
X centroid
|
int[] |
yCoordinates
Initialized by makeRoi()
|
Constructor and Description |
---|
EllipseFitter() |
Modifier and Type | Method and Description |
---|---|
void |
drawEllipse(ImageProcessor ip)
Draws the ellipse on the specified image.
|
void |
fit(ImageProcessor ip,
ImageStatistics stats)
Fits an ellipse to the current ROI.
|
void |
makeRoi(ImageProcessor ip)
Generates the xCoordinates, yCoordinates public arrays
that can be used to create an ROI.
|
public double xCenter
public double yCenter
public double major
public double minor
public double angle
public double theta
public int[] xCoordinates
public int[] yCoordinates
public int nCoordinates
public void fit(ImageProcessor ip, ImageStatistics stats)
public void drawEllipse(ImageProcessor ip)
public void makeRoi(ImageProcessor ip)