Package boofcv.alg.geo.robust
Class DistanceAffine2DSq
java.lang.Object
boofcv.alg.geo.robust.DistanceAffine2DSq
- All Implemented Interfaces:
DistanceFromModel<Affine2D_F64,
AssociatedPair>
public class DistanceAffine2DSq
extends Object
implements DistanceFromModel<Affine2D_F64,AssociatedPair>
Applies an affine transformation to the associated pair and computes the euclidean distance squared between their locations. This reduces computations by avoiding the square root functions, which is computationally expensive. While both this error metric and euclidean distance have the same minimum, this exaggerates the magnitude of outliers. The transform is applied to the "keyLoc".
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
void
distances
(List<AssociatedPair> points, double[] distance) void
setModel
(Affine2D_F64 model)
-
Constructor Details
-
DistanceAffine2DSq
public DistanceAffine2DSq()
-
-
Method Details
-
setModel
- Specified by:
setModel
in interfaceDistanceFromModel<Affine2D_F64,
AssociatedPair>
-
distance
- Specified by:
distance
in interfaceDistanceFromModel<Affine2D_F64,
AssociatedPair>
-
distances
- Specified by:
distances
in interfaceDistanceFromModel<Affine2D_F64,
AssociatedPair>
-
getPointType
- Specified by:
getPointType
in interfaceDistanceFromModel<Affine2D_F64,
AssociatedPair>
-
getModelType
- Specified by:
getModelType
in interfaceDistanceFromModel<Affine2D_F64,
AssociatedPair>
-