Package boofcv.alg.sfm.robust
Class GenerateScaleTranslateRotate2D
- java.lang.Object
-
- boofcv.alg.sfm.robust.GenerateScaleTranslateRotate2D
-
- All Implemented Interfaces:
org.ddogleg.fitting.modelset.ModelGenerator<ScaleTranslateRotate2D,boofcv.struct.geo.AssociatedPair>
public class GenerateScaleTranslateRotate2D extends java.lang.Object implements org.ddogleg.fitting.modelset.ModelGenerator<ScaleTranslateRotate2D,boofcv.struct.geo.AssociatedPair>
Estimates aScaleTranslateRotate2Dfrom 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
Constructors Constructor Description GenerateScaleTranslateRotate2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangenerate(java.util.List<boofcv.struct.geo.AssociatedPair> dataSet, ScaleTranslateRotate2D output)intgetMinimumPoints()
-
-
-
Method Detail
-
generate
public boolean generate(java.util.List<boofcv.struct.geo.AssociatedPair> dataSet, ScaleTranslateRotate2D output)- Specified by:
generatein interfaceorg.ddogleg.fitting.modelset.ModelGenerator<ScaleTranslateRotate2D,boofcv.struct.geo.AssociatedPair>
-
getMinimumPoints
public int getMinimumPoints()
- Specified by:
getMinimumPointsin interfaceorg.ddogleg.fitting.modelset.ModelGenerator<ScaleTranslateRotate2D,boofcv.struct.geo.AssociatedPair>
-
-