Class DistanceHomographyCalibratedSq

  • All Implemented Interfaces:
    DistanceFromModelMultiView<georegression.struct.homography.Homography2D_F64,​AssociatedPair>, org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,​AssociatedPair>

    public class DistanceHomographyCalibratedSq
    extends java.lang.Object
    implements DistanceFromModelMultiView<georegression.struct.homography.Homography2D_F64,​AssociatedPair>

    Computes the Euclidean error squared between 'p1' and 'p2' after projecting 'p1' into image 2. Input points must be in normalized image coordinates, but the output error will be in pixel coordinates.

    • Constructor Detail

      • DistanceHomographyCalibratedSq

        public DistanceHomographyCalibratedSq()
    • Method Detail

      • setModel

        public void setModel​(georegression.struct.homography.Homography2D_F64 model)
        Specified by:
        setModel in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,​AssociatedPair>
      • computeDistance

        public double computeDistance​(AssociatedPair pt)
        Specified by:
        computeDistance in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,​AssociatedPair>
      • computeDistance

        public void computeDistance​(java.util.List<AssociatedPair> points,
                                    double[] distance)
        Specified by:
        computeDistance in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,​AssociatedPair>
      • getPointType

        public java.lang.Class<AssociatedPair> getPointType()
        Specified by:
        getPointType in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,​AssociatedPair>
      • getModelType

        public java.lang.Class<georegression.struct.homography.Homography2D_F64> getModelType()
        Specified by:
        getModelType in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,​AssociatedPair>