Package boofcv.alg.geo.robust
Class DistanceHomographySq
java.lang.Object
boofcv.alg.geo.robust.DistanceHomographySq
- All Implemented Interfaces:
DistanceFromModel<Homography2D_F64,AssociatedPair>
public class DistanceHomographySq
extends Object
implements DistanceFromModel<Homography2D_F64,AssociatedPair>
Computes the Euclidean error squared between 'p1' and 'p2' after projecting 'p1' into image 2. Input can be in pixels or normalized image coordinates, but the error for normalized image coordinates doesn't have a physical meaning.
error = (p2'.x - p2.x)2 + (p2'.y - p2.y)2, where p2' is the predicted location and p2 is the observed location.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublevoiddistances(List<AssociatedPair> points, double[] distance) voidsetModel(Homography2D_F64 model) void
-
Constructor Details
-
DistanceHomographySq
public DistanceHomographySq()
-
-
Method Details
-
setModel
-
setModel
- Specified by:
setModelin interfaceDistanceFromModel<Homography2D_F64,AssociatedPair>
-
distance
- Specified by:
distancein interfaceDistanceFromModel<Homography2D_F64,AssociatedPair>
-
distances
- Specified by:
distancesin interfaceDistanceFromModel<Homography2D_F64,AssociatedPair>
-
getPointType
- Specified by:
getPointTypein interfaceDistanceFromModel<Homography2D_F64,AssociatedPair>
-
getModelType
- Specified by:
getModelTypein interfaceDistanceFromModel<Homography2D_F64,AssociatedPair>
-