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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecomputeResidual(AssociatedPair observation) Compute the error for the observationvoidSpecify the epipolar matrix being evaluated
-
Constructor Details
-
FundamentalResidualSampson
public FundamentalResidualSampson()
-
-
Method Details
-
setModel
Description copied from interface:ModelObservationResidualSpecify the epipolar matrix being evaluated- Specified by:
setModelin interfaceModelObservationResidual<DMatrixRMaj,AssociatedPair> - Parameters:
F- The model being optimized
-
computeResidual
Description copied from interface:ModelObservationResidualCompute the error for the observation- Specified by:
computeResidualin interfaceModelObservationResidual<DMatrixRMaj,AssociatedPair> - Parameters:
observation- Observation of point feature in two views- Returns:
- residual Error magnitude
-