public class DistanceAffine2DSq extends java.lang.Object implements org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.affine.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 and Description |
|---|
DistanceAffine2DSq() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeDistance(AssociatedPair pt) |
void |
computeDistance(java.util.List<AssociatedPair> points,
double[] distance) |
void |
setModel(georegression.struct.affine.Affine2D_F64 model) |
public void setModel(georegression.struct.affine.Affine2D_F64 model)
setModel in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.affine.Affine2D_F64,AssociatedPair>public double computeDistance(AssociatedPair pt)
computeDistance in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.affine.Affine2D_F64,AssociatedPair>public void computeDistance(java.util.List<AssociatedPair> points, double[] distance)
computeDistance in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.affine.Affine2D_F64,AssociatedPair>