public class TranslationModel3D extends InvertibleModel
Modifier and Type | Field and Description |
---|---|
protected static int |
MIN_SET_SIZE |
protected float[] |
translation |
Constructor and Description |
---|
TranslationModel3D() |
Modifier and Type | Method and Description |
---|---|
float[] |
apply(float[] point)
Apply the
CoordinateTransform to a location. |
void |
applyInPlace(float[] point)
Apply the
CoordinateTransform to a location. |
float[] |
applyInverse(float[] point)
Apply the inverse of the model to a point location
|
void |
applyInverseInPlace(float[] point)
apply the inverse of the model to a point location
|
TranslationModel3D |
clone()
Clone the model.
|
void |
fit(Collection<PointMatch> matches)
Fit the
Model to a set of data points minimizing the global
transfer error. |
int |
getMinSetSize() |
float[] |
getTranslation() |
void |
shake(Collection<PointMatch> matches,
float scale,
float[] center)
change the model a bit
estimates the necessary amount of shaking for each single dimensional
distance in the set of matches
|
String |
toString()
Create a meaningful string representation of the model for save into
text-files or display on terminals.
|
betterThan, filter, filterRansac, getCost, getError, ransac, setCost, setError, test
protected static final int MIN_SET_SIZE
protected final float[] translation
public float[] getTranslation()
public final int getMinSetSize()
getMinSetSize
in class Model
public float[] apply(float[] point)
CoordinateTransform
CoordinateTransform
to a location.public void applyInPlace(float[] point)
CoordinateTransform
CoordinateTransform
to a location.public float[] applyInverse(float[] point)
InvertibleCoordinateTransform
public void applyInverseInPlace(float[] point)
InvertibleCoordinateTransform
public String toString()
Model
public final void fit(Collection<PointMatch> matches) throws NotEnoughDataPointsException
Model
Model
to a set of data points minimizing the global
transfer error. This is assumed to be implemented as a least squares
minimization. Use
ransac
and/ or Model.filter(Class, Collection, Collection)
to remove
outliers from your data points
The estimated model transfers match.p2.local to match.p1.world.fit
in class Model
matches
- set of point correpondencesNotEnoughDataPointsException
- an exception if matches does not contain enough data pointspublic final void shake(Collection<PointMatch> matches, float scale, float[] center)
public TranslationModel3D clone()
Model
clone
in class InvertibleModel
Copyright © 2015–2021 Fiji. All rights reserved.