Package boofcv.alg.geo.f
Class FundamentalResidualSampson
java.lang.Object
boofcv.alg.geo.f.FundamentalResidualSampson
- All Implemented Interfaces:
ModelObservationResidual<DMatrixRMaj,
AssociatedPair>
public class FundamentalResidualSampson
extends Object
implements ModelObservationResidual<DMatrixRMaj,AssociatedPair>
Computes the Sampson distance residual for a set of observations given a fundamental matrix. For use in least-squares non-linear optimization algorithms.
Page 287 in: R. Hartley, and A. Zisserman, "Multiple View Geometry in Computer Vision", 2nd Ed, Cambridge 2003
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
computeResidual
(AssociatedPair observation) Compute the error for the observationvoid
Specify the epipolar matrix being evaluated
-
Constructor Details
-
FundamentalResidualSampson
public FundamentalResidualSampson()
-
-
Method Details
-
setModel
Description copied from interface:ModelObservationResidual
Specify the epipolar matrix being evaluated- Specified by:
setModel
in interfaceModelObservationResidual<DMatrixRMaj,
AssociatedPair> - Parameters:
F
- The model being optimized
-
computeResidual
Description copied from interface:ModelObservationResidual
Compute the error for the observation- Specified by:
computeResidual
in interfaceModelObservationResidual<DMatrixRMaj,
AssociatedPair> - Parameters:
observation
- Observation of point feature in two views- Returns:
- residual Error magnitude
-