boofcv.alg.sfm.robust
Class GenerateScaleTranslateRotate2D
- java.lang.Object
-
- boofcv.alg.sfm.robust.GenerateScaleTranslateRotate2D
-
- All Implemented Interfaces:
- ModelGenerator<ScaleTranslateRotate2D,AssociatedPair>
public class GenerateScaleTranslateRotate2D extends java.lang.Object implements ModelGenerator<ScaleTranslateRotate2D,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 and Description GenerateScaleTranslateRotate2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleangenerate(java.util.List<AssociatedPair> dataSet, ScaleTranslateRotate2D output)Creates a list of hypotheses from the set of sample points.intgetMinimumPoints()The minimum number of points required to fit a data set
-
-
-
Method Detail
-
generate
public boolean generate(java.util.List<AssociatedPair> dataSet, ScaleTranslateRotate2D output)
Description copied from interface:ModelGeneratorCreates a list of hypotheses from the set of sample points.- Specified by:
generatein interfaceModelGenerator<ScaleTranslateRotate2D,AssociatedPair>- Parameters:
dataSet- Set of sample points. Typically the minimum number possible.output- Storage for generated model.- Returns:
- true if a model was generated, otherwise false is none were
-
getMinimumPoints
public int getMinimumPoints()
Description copied from interface:ModelGeneratorThe minimum number of points required to fit a data set- Specified by:
getMinimumPointsin interfaceModelGenerator<ScaleTranslateRotate2D,AssociatedPair>- Returns:
- Number of points.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG