boofcv.alg.geo.f
Class DistanceEpipolarConstraint
- java.lang.Object
-
- boofcv.alg.geo.f.DistanceEpipolarConstraint
-
- All Implemented Interfaces:
- DistanceFromModel<org.ejml.data.DenseMatrix64F,AssociatedPair>
public class DistanceEpipolarConstraint extends java.lang.Object implements DistanceFromModel<org.ejml.data.DenseMatrix64F,AssociatedPair>
Computes error using the epipolar constraint. The input matrix is normalized so that different matrices can be compared at the same scale.
-
-
Constructor Summary
Constructors Constructor and Description DistanceEpipolarConstraint()
-
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> associatedPairs, double[] distance)Computes the distance a set of points is from the model and saves the results in the provided array.voidsetModel(org.ejml.data.DenseMatrix64F F)Sets the model parameters.
-
-
-
Method Detail
-
setModel
public void setModel(org.ejml.data.DenseMatrix64F F)
Description copied from interface:DistanceFromModelSets the model parameters.- Specified by:
setModelin interfaceDistanceFromModel<org.ejml.data.DenseMatrix64F,AssociatedPair>- Parameters:
F- 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<org.ejml.data.DenseMatrix64F,AssociatedPair>- Parameters:
pt- Point being evaluated. Not modified.- Returns:
- Distance the point is from the model.
-
computeDistance
public void computeDistance(java.util.List<AssociatedPair> 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<org.ejml.data.DenseMatrix64F,AssociatedPair>- Parameters:
associatedPairs- Set of points which are to be evaluated.distance- Where model distance is stored.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG