Package boofcv.alg.geo.robust
Class DistanceHomographyCalibratedSq
- java.lang.Object
-
- boofcv.alg.geo.robust.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 Summary
Constructors Constructor Description DistanceHomographyCalibratedSq()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeDistance(AssociatedPair pt)voidcomputeDistance(java.util.List<AssociatedPair> points, double[] distance)java.lang.Class<georegression.struct.homography.Homography2D_F64>getModelType()intgetNumberOfViews()java.lang.Class<AssociatedPair>getPointType()voidsetIntrinsic(int view, CameraPinhole intrinsic)voidsetModel(georegression.struct.homography.Homography2D_F64 model)
-
-
-
Method Detail
-
setModel
public void setModel(georegression.struct.homography.Homography2D_F64 model)
- Specified by:
setModelin interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>
-
computeDistance
public double computeDistance(AssociatedPair pt)
- Specified by:
computeDistancein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>
-
computeDistance
public void computeDistance(java.util.List<AssociatedPair> points, double[] distance)
- Specified by:
computeDistancein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>
-
getPointType
public java.lang.Class<AssociatedPair> getPointType()
- Specified by:
getPointTypein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>
-
getModelType
public java.lang.Class<georegression.struct.homography.Homography2D_F64> getModelType()
- Specified by:
getModelTypein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.homography.Homography2D_F64,AssociatedPair>
-
setIntrinsic
public void setIntrinsic(int view, CameraPinhole intrinsic)- Specified by:
setIntrinsicin interfaceDistanceFromModelMultiView<georegression.struct.homography.Homography2D_F64,AssociatedPair>
-
getNumberOfViews
public int getNumberOfViews()
- Specified by:
getNumberOfViewsin interfaceDistanceFromModelMultiView<georegression.struct.homography.Homography2D_F64,AssociatedPair>
-
-