Package boofcv.alg.geo.robust
Class DistanceTrifocalReprojectionSq
java.lang.Object
boofcv.alg.geo.robust.DistanceTrifocalReprojectionSq
- All Implemented Interfaces:
DistanceFromModel<TrifocalTensor,AssociatedTriple>
public class DistanceTrifocalReprojectionSq
extends Object
implements 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
ConstructorsConstructorDescriptionDistanceTrifocalReprojectionSq(double gtol, int maxIterations) Call this constructor if you wish to apply non-linear refinement. -
Method Summary
Modifier and TypeMethodDescriptiondoublevoiddistances(List<AssociatedTriple> observations, double[] distance) voidsetModel(TrifocalTensor trifocalTensor)
-
Constructor Details
-
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 Details
-
setModel
- Specified by:
setModelin interfaceDistanceFromModel<TrifocalTensor,AssociatedTriple>
-
distance
- Specified by:
distancein interfaceDistanceFromModel<TrifocalTensor,AssociatedTriple>
-
distances
- Specified by:
distancesin interfaceDistanceFromModel<TrifocalTensor,AssociatedTriple>
-
getPointType
- Specified by:
getPointTypein interfaceDistanceFromModel<TrifocalTensor,AssociatedTriple>
-
getModelType
- Specified by:
getModelTypein interfaceDistanceFromModel<TrifocalTensor,AssociatedTriple>
-