Package boofcv.alg.geo.robust
Class GenerateScaleTranslateRotate2D
java.lang.Object
boofcv.alg.geo.robust.GenerateScaleTranslateRotate2D
- All Implemented Interfaces:
ModelGenerator<ScaleTranslateRotate2D,
AssociatedPair>
public class GenerateScaleTranslateRotate2D
extends Object
implements ModelGenerator<ScaleTranslateRotate2D,AssociatedPair>
Estimates a
ScaleTranslateRotate2D
from three 2D point correspondences.
The transform will take a point from p1 to p2. First the affine transform is found using the standard
linear equation. Scale and translation are found by finding a bit fit solution using SVD.
NOTE: The found solution is not going to be optimal due to the initial approximation using an affine transform.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
generate
(List<AssociatedPair> dataSet, ScaleTranslateRotate2D output) int
-
Constructor Details
-
GenerateScaleTranslateRotate2D
public GenerateScaleTranslateRotate2D()
-
-
Method Details
-
generate
- Specified by:
generate
in interfaceModelGenerator<ScaleTranslateRotate2D,
AssociatedPair>
-
getMinimumPoints
public int getMinimumPoints()- Specified by:
getMinimumPoints
in interfaceModelGenerator<ScaleTranslateRotate2D,
AssociatedPair>
-