boofcv.alg.geo.robust
Class DistanceSe2Sq
- java.lang.Object
-
- boofcv.alg.geo.robust.DistanceSe2Sq
-
- All Implemented Interfaces:
- DistanceFromModel<Se2_F64,AssociatedPair>
public class DistanceSe2Sq extends java.lang.Object implements DistanceFromModel<Se2_F64,AssociatedPair>
Computes the Euclidean error squared between the predicted and actual location of 2D features after applying aSe2_F64transform.
-
-
Constructor Summary
Constructors Constructor and Description DistanceSe2Sq()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecomputeDistance(AssociatedPair sample)Computes the distance the point is from the model.voidcomputeDistance(java.util.List<AssociatedPair> samples, double[] distance)Computes the distance a set of points is from the model and saves the results in the provided array.voidsetModel(Se2_F64 keyToCurr)Sets the model parameters.
-
-
-
Method Detail
-
setModel
public void setModel(Se2_F64 keyToCurr)
Description copied from interface:DistanceFromModelSets the model parameters.- Specified by:
setModelin interfaceDistanceFromModel<Se2_F64,AssociatedPair>- Parameters:
keyToCurr- Model parameters.
-
computeDistance
public double computeDistance(AssociatedPair sample)
Description copied from interface:DistanceFromModelComputes the distance the point is from the model.- Specified by:
computeDistancein interfaceDistanceFromModel<Se2_F64,AssociatedPair>- Parameters:
sample- Point being evaluated. Not modified.- Returns:
- Distance the point is from the model.
-
computeDistance
public void computeDistance(java.util.List<AssociatedPair> samples, double[] distance)
Description copied from interface:DistanceFromModelComputes the distance a set of points is from the model and saves the results in the provided array.- Specified by:
computeDistancein interfaceDistanceFromModel<Se2_F64,AssociatedPair>- Parameters:
samples- Set of points which are to be evaluated.distance- Where model distance is stored.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG