Package boofcv.alg.geo.robust
Class DistanceTrifocalReprojectionSq
- java.lang.Object
-
- boofcv.alg.geo.robust.DistanceTrifocalReprojectionSq
-
- All Implemented Interfaces:
org.ddogleg.fitting.modelset.DistanceFromModel<TrifocalTensor,AssociatedTriple>
public class DistanceTrifocalReprojectionSq extends java.lang.Object implements org.ddogleg.fitting.modelset.DistanceFromModel<TrifocalTensor,AssociatedTriple>
Estimates the accuracy of a trifocal tensor using reprojection error. The camera matrices are extracted from the tensor, these are used to triangulate the observation. the found point is then reprojected back to each view and the delta computed. Optional non-linear refinement.
-
-
Constructor Summary
Constructors Constructor Description DistanceTrifocalReprojectionSq()DistanceTrifocalReprojectionSq(double gtol, int maxIterations)Call this constructor if you wish to apply non-linear refinement.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeDistance(AssociatedTriple pt)voidcomputeDistance(java.util.List<AssociatedTriple> observations, double[] distance)java.lang.Class<TrifocalTensor>getModelType()java.lang.Class<AssociatedTriple>getPointType()voidsetModel(TrifocalTensor trifocalTensor)
-
-
-
Constructor Detail
-
DistanceTrifocalReprojectionSq
public DistanceTrifocalReprojectionSq(double gtol, int maxIterations)Call this constructor if you wish to apply non-linear refinement.- Parameters:
gtol- convergence tolerance. Try 1e-8maxIterations- Max iterations. Try 50
-
DistanceTrifocalReprojectionSq
public DistanceTrifocalReprojectionSq()
-
-
Method Detail
-
setModel
public void setModel(TrifocalTensor trifocalTensor)
- Specified by:
setModelin interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<TrifocalTensor,AssociatedTriple>
-
computeDistance
public double computeDistance(AssociatedTriple pt)
- Specified by:
computeDistancein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<TrifocalTensor,AssociatedTriple>
-
computeDistance
public void computeDistance(java.util.List<AssociatedTriple> observations, double[] distance)
- Specified by:
computeDistancein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<TrifocalTensor,AssociatedTriple>
-
getPointType
public java.lang.Class<AssociatedTriple> getPointType()
- Specified by:
getPointTypein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<TrifocalTensor,AssociatedTriple>
-
getModelType
public java.lang.Class<TrifocalTensor> getModelType()
- Specified by:
getModelTypein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<TrifocalTensor,AssociatedTriple>
-
-