Class 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 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 Detail

      • GenerateScaleTranslateRotate2D

        public GenerateScaleTranslateRotate2D()
    • Method Detail

      • generate

        public boolean generate​(java.util.List<boofcv.struct.geo.AssociatedPair> dataSet,
                                ScaleTranslateRotate2D output)
        Specified by:
        generate in interface org.ddogleg.fitting.modelset.ModelGenerator<ScaleTranslateRotate2D,​boofcv.struct.geo.AssociatedPair>
      • getMinimumPoints

        public int getMinimumPoints()
        Specified by:
        getMinimumPoints in interface org.ddogleg.fitting.modelset.ModelGenerator<ScaleTranslateRotate2D,​boofcv.struct.geo.AssociatedPair>