boofcv.abst.geo.fitting
Class DistanceFromModelResidual<Model,Point>
- java.lang.Object
-
- boofcv.abst.geo.fitting.DistanceFromModelResidual<Model,Point>
-
- All Implemented Interfaces:
- DistanceFromModel<Model,Point>
public class DistanceFromModelResidual<Model,Point> extends java.lang.Object implements DistanceFromModel<Model,Point>
Computes the error usingModelObservationResidualforDistanceFromModel.
-
-
Constructor Summary
Constructors Constructor and Description DistanceFromModelResidual(ModelObservationResidual<Model,Point> function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomputeDistance(java.util.List<Point> associatedPairs, double[] distance)Computes the distance a set of points is from the model and saves the results in the provided array.doublecomputeDistance(Point pt)Computes the distance the point is from the model.voidsetModel(Model F)Sets the model parameters.
-
-
-
Constructor Detail
-
DistanceFromModelResidual
public DistanceFromModelResidual(ModelObservationResidual<Model,Point> function)
-
-
Method Detail
-
setModel
public void setModel(Model F)
Description copied from interface:DistanceFromModelSets the model parameters.- Specified by:
setModelin interfaceDistanceFromModel<Model,Point>- Parameters:
F- Model parameters.
-
computeDistance
public double computeDistance(Point pt)
Description copied from interface:DistanceFromModelComputes the distance the point is from the model.- Specified by:
computeDistancein interfaceDistanceFromModel<Model,Point>- Parameters:
pt- Point being evaluated. Not modified.- Returns:
- Distance the point is from the model.
-
computeDistance
public void computeDistance(java.util.List<Point> associatedPairs, 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<Model,Point>- Parameters:
associatedPairs- Set of points which are to be evaluated.distance- Where model distance is stored.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG