| Package | Description |
|---|---|
| org.openimaj.math.geometry.path | |
| org.openimaj.math.geometry.point | |
| org.openimaj.math.geometry.shape | |
| org.openimaj.math.geometry.shape.algorithm |
| Modifier and Type | Class and Description |
|---|---|
class |
Polyline
|
| Modifier and Type | Method and Description |
|---|---|
PointList |
PointList.clone() |
static PointList |
PointList.computeMean(Collection<PointList> shapes)
Compute the mean of a set of
PointLists. |
PointList |
PointList.scaleX(float sc)
Scale the
PointList only in the x-direction by the given amount
about (0,0). |
PointList |
PointList.scaleXY(float scx,
float scy)
Scale the
PointList by the given amount about (0,0). |
PointList |
PointList.scaleY(float sc)
Scale the
PointList only in the y-direction by the given amount
about (0,0). |
PointList |
PointList.transform(Jama.Matrix transform)
Apply a 3x3 transform matrix to a copy of the
PointList and
return it |
| Modifier and Type | Method and Description |
|---|---|
void |
PointListConnections.addConnection(PointList pl,
Line2d line)
Add a connection between the two end points of the given line in the
given
PointList. |
void |
PointListConnections.addConnection(PointList pl,
Point2d from,
Point2d to)
Add a connection between two points in the given
PointList. |
Point2dImpl |
PointListConnections.calculateNormal(int id,
PointList pointList)
Calculate the normal vector at a given vertex id.
|
Point2dImpl |
PointListConnections.calculateNormal(Point2d pt,
PointList pointList)
Calculate the normal vector at a given vertex.
|
Line2d |
PointListConnections.calculateNormalLine(int idx,
PointList pointList,
float scale)
Calculate a normal line for a given vertex.
|
Line2d |
PointListConnections.calculateNormalLine(Point2d pt,
PointList pointList,
float scale)
Calculate a normal line for a given vertex.
|
Point2d[] |
PointListConnections.getConnections(Point2d pt,
PointList pl)
Get the points connected to the given point.
|
List<Line2d> |
PointListConnections.getLines(PointList pointList)
Get the connections as a list of lines based on the points in the given
PointList. |
| Modifier and Type | Method and Description |
|---|---|
static PointList |
PointList.computeMean(Collection<PointList> shapes)
Compute the mean of a set of
PointLists. |
| Constructor and Description |
|---|
PointListConnections(PointList pl,
List<Line2d> lines)
|
| Modifier and Type | Class and Description |
|---|---|
class |
Polygon
A polygon, modelled as a list of vertices.
|
class |
TriangulatedPolygon
A polygon that has been broken into triangles.
|
| Modifier and Type | Field and Description |
|---|---|
protected PointList |
PointDistributionModel.mean |
| Modifier and Type | Method and Description |
|---|---|
PointList |
PointDistributionModel.generateNewShape(double[] scaling)
Generate a plausible new shape from the scaling vector.
|
PointList |
PointDistributionModel.getMean() |
| Modifier and Type | Method and Description |
|---|---|
IndependentPair<Jama.Matrix,double[]> |
PointDistributionModel.fitModel(PointList observed)
Determine the best parameters of the PDM for the given model.
|
| Constructor and Description |
|---|
PointDistributionModel(List<PointList> data)
Construct a
PointDistributionModel from the given data with a
PointDistributionModel.NullConstraint. |
PointDistributionModel(PointDistributionModel.Constraint constraint,
List<PointList> data)
Construct a
PointDistributionModel from the given data and
PointDistributionModel.Constraint. |
| Modifier and Type | Field and Description |
|---|---|
protected PointList |
ProcrustesAnalysis.reference |
| Modifier and Type | Method and Description |
|---|---|
PointList |
GeneralisedProcrustesAnalysis.align(List<PointList> shapes)
Align the input shapes to the "mean" shape.
|
static PointList |
GeneralisedProcrustesAnalysis.alignPoints(List<PointList> inputShapes,
float threshold,
int maxIters)
Align the input shapes to the "mean" shape using Generalised Procrustes Analysis.
|
protected static PointList |
GeneralisedProcrustesAnalysis.alignPointsAndAverage(List<PointList> shapes,
PointList reference,
double referenceScaling,
Point2d referenceCog) |
| Modifier and Type | Method and Description |
|---|---|
Jama.Matrix |
ProcrustesAnalysis.align(PointList toAlign)
Align the given shape to the reference.
|
protected static PointList |
GeneralisedProcrustesAnalysis.alignPointsAndAverage(List<PointList> shapes,
PointList reference,
double referenceScaling,
Point2d referenceCog) |
static float |
ProcrustesAnalysis.computeProcrustesDistance(PointList l1,
PointList l2)
Compute the Procrustes Distance between two
PointLists. |
protected static double |
ProcrustesAnalysis.computeScale(PointList pl,
double tx,
double ty) |
| Modifier and Type | Method and Description |
|---|---|
PointList |
GeneralisedProcrustesAnalysis.align(List<PointList> shapes)
Align the input shapes to the "mean" shape.
|
static PointList |
GeneralisedProcrustesAnalysis.alignPoints(List<PointList> inputShapes,
float threshold,
int maxIters)
Align the input shapes to the "mean" shape using Generalised Procrustes Analysis.
|
protected static PointList |
GeneralisedProcrustesAnalysis.alignPointsAndAverage(List<PointList> shapes,
PointList reference,
double referenceScaling,
Point2d referenceCog) |
| Constructor and Description |
|---|
ProcrustesAnalysis(PointList reference)
Construct the
ProcrustesAnalysis with the given
reference shape. |
ProcrustesAnalysis(PointList reference,
boolean normalise)
Construct the
ProcrustesAnalysis with the given
reference shape. |