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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublevoiddistances(List<AssociatedPair> points, double[] distance) voidsetModel(Affine2D_F64 model)
-
Constructor Details
-
DistanceAffine2DSq
public DistanceAffine2DSq()
-
-
Method Details
-
setModel
- Specified by:
setModelin interfaceDistanceFromModel<Affine2D_F64,AssociatedPair>
-
distance
- Specified by:
distancein interfaceDistanceFromModel<Affine2D_F64,AssociatedPair>
-
distances
- Specified by:
distancesin interfaceDistanceFromModel<Affine2D_F64,AssociatedPair>
-
getPointType
- Specified by:
getPointTypein interfaceDistanceFromModel<Affine2D_F64,AssociatedPair>
-
getModelType
- Specified by:
getModelTypein interfaceDistanceFromModel<Affine2D_F64,AssociatedPair>
-