public class TranslationInvariantSimilarityModel3D extends TranslationInvariantModel<TranslationInvariantSimilarityModel3D>
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 |
---|
TranslationInvariantSimilarityModel3D() |
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. |
TranslationInvariantSimilarityModel3D |
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. |
int |
getMinNumMatches() |
void |
set(TranslationInvariantSimilarityModel3D 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, test
protected 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 TranslationInvariantSimilarityModel3D()
public boolean canDoNumDimension(int numDimensions)
TranslationInvariantModel
TranslationInvariantModel
can tell which dimensions it supports.canDoNumDimension
in class TranslationInvariantModel<TranslationInvariantSimilarityModel3D>
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
Model
Model
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(TranslationInvariantSimilarityModel3D m)
Model
public TranslationInvariantSimilarityModel3D copy()
Model
public final int getMinNumMatches()
PointMatches
required
to solve the model.public final double[] apply(double[] l)
CoordinateTransform
CoordinateTransform
to a location.public final void applyInPlace(double[] l)
CoordinateTransform
CoordinateTransform
to a location.Copyright © 2015–2021 Fiji. All rights reserved.