| Package | Description |
|---|---|
| org.openimaj.math.geometry.shape |
| Modifier and Type | Method and Description |
|---|---|
Ellipse |
Ellipse.clone() |
static Ellipse |
EllipseUtilities.ellipseFromCovariance(float x,
float y,
Jama.Matrix sm,
float sf)
Construct ellipse from covariance matrix, scale-factor and centroid.
|
static Ellipse |
EllipseUtilities.ellipseFromEquation(double centerX,
double centerY,
double major,
double minor,
double rotation)
Construct an ellipse using a parametric ellipse equation, namely:
X(t) = centerX + major * cos(t) * cos(rotation) - minor * sin(t) *
sin(rotation) Y(t) = centerY + major * cos(t) * cos(rotation) + minor *
sin(t) * sin(rotation)
|
static Ellipse |
EllipseUtilities.ellipseFromGaussian(MultivariateGaussian gaussian,
float scale)
Construct an ellipse that encompasses the shape of a
CachingMultivariateGaussian. |
static Ellipse |
EllipseUtilities.ellipseFromSecondMoments(float x,
float y,
Jama.Matrix secondMoments)
Construct ellipse from second moment matrix and centroid.
|
static Ellipse |
EllipseUtilities.ellipseFromSecondMoments(float x,
float y,
Jama.Matrix secondMoments,
double scaleFactor)
Construct ellipse from second moment matrix, scale-factor and centroid.
|
static Ellipse |
EllipseUtilities.fromTransformMatrix2x2(Jama.Matrix U,
float x,
float y,
float scale)
Create an ellipse.
|
Ellipse |
Polygon.toEllipse()
Using
EllipseUtilities.ellipseFromCovariance(float, float, Matrix, float)
and the Polygon.calculateSecondMomentCentralised() return the Ellipse
best fitting the shape of this polygon. |
Ellipse |
Ellipse.transformAffine(Jama.Matrix transform) |
| Modifier and Type | Method and Description |
|---|---|
static double |
EllipseAreaOfIntersection.AreaOfIntersection(Ellipse E0,
Ellipse E1)
Compute area of intersection.
|
static Jama.Matrix |
EllipseUtilities.ellipseToCovariance(Ellipse e)
Create the covariance matrix of an ellipse.
|