Package stitching.model
Class TranslationModel3D
java.lang.Object
stitching.model.Model
stitching.model.InvertibleModel
stitching.model.TranslationModel3D
- All Implemented Interfaces:
CoordinateTransform,InvertibleCoordinateTransform
TODO
- Author:
- Stephan Saalfeld
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected final float[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat[]apply(float[] point) Apply theCoordinateTransformto a location.voidapplyInPlace(float[] point) Apply theCoordinateTransformto a location.float[]applyInverse(float[] point) Apply the inverse of the model to a point locationvoidapplyInverseInPlace(float[] point) apply the inverse of the model to a point locationclone()Clone the model.final voidfit(Collection<PointMatch> matches) Fit theModelto a set of data points minimizing the global transfer error.final intfloat[]final voidshake(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 matchestoString()Create a meaningful string representation of the model for save into text-files or display on terminals.Methods inherited from class stitching.model.Model
betterThan, filter, filterRansac, getCost, getError, ransac, setCost, setError, test
-
Field Details
-
MIN_SET_SIZE
protected static final int MIN_SET_SIZE- See Also:
-
translation
protected final float[] translation
-
-
Constructor Details
-
TranslationModel3D
public TranslationModel3D()
-
-
Method Details
-
getTranslation
public float[] getTranslation() -
getMinSetSize
public final int getMinSetSize()- Specified by:
getMinSetSizein classModel
-
apply
public float[] apply(float[] point) Description copied from interface:CoordinateTransformApply theCoordinateTransformto a location.- Parameters:
point-- Returns:
- transformed location
-
applyInPlace
public void applyInPlace(float[] point) Description copied from interface:CoordinateTransformApply theCoordinateTransformto a location.- Parameters:
point-
-
applyInverse
public float[] applyInverse(float[] point) Description copied from interface:InvertibleCoordinateTransformApply the inverse of the model to a point location- Parameters:
point-- Returns:
- transformed point
-
applyInverseInPlace
public void applyInverseInPlace(float[] point) Description copied from interface:InvertibleCoordinateTransformapply the inverse of the model to a point location- Parameters:
point-
-
toString
Description copied from class:ModelCreate a meaningful string representation of the model for save into text-files or display on terminals. -
fit
Description copied from class:ModelFit theModelto a set of data points minimizing the global transfer error. This is assumed to be implemented as a least squares minimization. Useransacand/ orModel.filter(Class, Collection, Collection)to remove outliers from your data points The estimated model transfers match.p2.local to match.p1.world.- Specified by:
fitin classModel- Parameters:
matches- set of point correpondences- Throws:
NotEnoughDataPointsException- an exception if matches does not contain enough data points
-
shake
change the model a bit estimates the necessary amount of shaking for each single dimensional distance in the set of matches -
clone
Description copied from class:ModelClone the model.- Specified by:
clonein classInvertibleModel
-