public class TranslationInvariantRigidModel3D extends TranslationInvariantModel<TranslationInvariantRigidModel3D>
| Modifier and Type | Field and Description |
|---|---|
protected double |
m00 |
protected double |
m01 |
protected double |
m02 |
protected double |
m10 |
protected double |
m11 |
protected double |
m12 |
protected double |
m20 |
protected double |
m21 |
protected double |
m22 |
protected static int |
MIN_NUM_MATCHES |
protected double[][] |
N |
cost, rnd| Constructor and Description |
|---|
TranslationInvariantRigidModel3D() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
apply(double[] l)
Apply the
CoordinateTransform to a location. |
void |
applyInPlace(double[] l)
Apply the
CoordinateTransform to a location. |
boolean |
canDoNumDimension(int numDimensions)
The
TranslationInvariantModel can tell which dimensions it supports. |
TranslationInvariantRigidModel3D |
copy()
Clone the model.
|
<P extends PointMatch> |
fit(Collection<P> matches)
Fit the
Model to a set of data points minimizing the global
transfer error. |
void |
getMatrix3d(Matrix3d matrix) |
void |
getMatrix4d(Matrix4d matrix) |
int |
getMinNumMatches() |
void |
set(TranslationInvariantRigidModel3D m)
Set the model to m
|
String |
toString() |
betterThan, filter, filter, filter, filterRansac, filterRansac, filterRansac, filterRansac, fit, fit, getCost, icp, localSmoothnessFilter, ransac, ransac, setCost, test, testprotected static final int MIN_NUM_MATCHES
protected double m00
protected double m01
protected double m02
protected double m10
protected double m11
protected double m12
protected double m20
protected double m21
protected double m22
protected final double[][] N
public void getMatrix4d(Matrix4d matrix)
public void getMatrix3d(Matrix3d matrix)
public boolean canDoNumDimension(int numDimensions)
TranslationInvariantModelTranslationInvariantModel can tell which dimensions it supports.canDoNumDimension in class TranslationInvariantModel<TranslationInvariantRigidModel3D>numDimensions - - The dimensionality (e.g. 3 means 3-dimensional)TranslationInvariantModel supports that dimensionalitypublic final <P extends PointMatch> void fit(Collection<P> matches) throws NotEnoughDataPointsException, IllDefinedDataPointsException
ModelModel to a set of data points minimizing the global
transfer error. This is assumed to be implemented as a weighted least
squares minimization. Use ransac
and/ or Model.filter(java.util.Collection<P>, java.util.Collection<P>, double, int) to remove outliers from your data points.
The estimated model transfers match.p1.local to match.p2.world.
matches - set of point correpondencesNotEnoughDataPointsException - if matches does not contain
enough data pointsIllDefinedDataPointsException - if the set of data points is
inappropriate to solve the Modelpublic final void set(TranslationInvariantRigidModel3D m)
Modelpublic TranslationInvariantRigidModel3D copy()
Modelpublic final int getMinNumMatches()
PointMatches required
to solve the model.public final double[] apply(double[] l)
CoordinateTransformCoordinateTransform to a location.public final void applyInPlace(double[] l)
CoordinateTransformCoordinateTransform to a location.Copyright © 2015–2021 Fiji. All rights reserved.