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
ConstructorDescriptionDistanceTrifocalReprojectionSq
(double gtol, int maxIterations) Call this constructor if you wish to apply non-linear refinement. -
Method Summary
Modifier and TypeMethodDescriptiondouble
void
distances
(List<AssociatedTriple> observations, double[] distance) void
setModel
(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:
setModel
in interfaceDistanceFromModel<TrifocalTensor,
AssociatedTriple>
-
distance
- Specified by:
distance
in interfaceDistanceFromModel<TrifocalTensor,
AssociatedTriple>
-
distances
- Specified by:
distances
in interfaceDistanceFromModel<TrifocalTensor,
AssociatedTriple>
-
getPointType
- Specified by:
getPointType
in interfaceDistanceFromModel<TrifocalTensor,
AssociatedTriple>
-
getModelType
- Specified by:
getModelType
in interfaceDistanceFromModel<TrifocalTensor,
AssociatedTriple>
-