boofcv.alg.sfm.robust
Class DistanceScaleTranslate2DSq
- java.lang.Object
-
- boofcv.alg.sfm.robust.DistanceScaleTranslate2DSq
-
- All Implemented Interfaces:
- DistanceFromModel<ScaleTranslate2D,AssociatedPair>
public class DistanceScaleTranslate2DSq extends java.lang.Object implements DistanceFromModel<ScaleTranslate2D,AssociatedPair>
Computes distance squared between p1 after applying theScaleTranslate2Dmotion model and p2. ||p2 - (p1*scale+trans)||^2
-
-
Constructor Summary
Constructors Constructor and Description DistanceScaleTranslate2DSq()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublecomputeDistance(AssociatedPair pt)Computes the distance the point is from the model.voidcomputeDistance(java.util.List<AssociatedPair> obs, double[] distance)Computes the distance a set of points is from the model and saves the results in the provided array.voidsetModel(ScaleTranslate2D model)Sets the model parameters.
-
-
-
Method Detail
-
setModel
public void setModel(ScaleTranslate2D model)
Description copied from interface:DistanceFromModelSets the model parameters.- Specified by:
setModelin interfaceDistanceFromModel<ScaleTranslate2D,AssociatedPair>- Parameters:
model- Model parameters.
-
computeDistance
public double computeDistance(AssociatedPair pt)
Description copied from interface:DistanceFromModelComputes the distance the point is from the model.- Specified by:
computeDistancein interfaceDistanceFromModel<ScaleTranslate2D,AssociatedPair>- Parameters:
pt- Point being evaluated. Not modified.- Returns:
- Distance the point is from the model.
-
computeDistance
public void computeDistance(java.util.List<AssociatedPair> obs, 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<ScaleTranslate2D,AssociatedPair>- Parameters:
obs- Set of points which are to be evaluated.distance- Where model distance is stored.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG