Package boofcv.alg.geo.h
Class HomographyResidualTransfer
java.lang.Object
boofcv.alg.geo.h.HomographyResidualTransfer
- All Implemented Interfaces:
ModelObservationResidualN<DMatrixRMaj,AssociatedPair>
public class HomographyResidualTransfer
extends Object
implements ModelObservationResidualN<DMatrixRMaj,AssociatedPair>
Computes the difference between the point projected by the homography and its observed location. Fast to compute but less theoretically correct than others.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcomputeResiduals(AssociatedPair p, double[] residuals, int index) Compute the residual errors for the observationintgetN()The number of outputsvoidSpecify the model being evaluated
-
Constructor Details
-
HomographyResidualTransfer
public HomographyResidualTransfer()
-
-
Method Details
-
setModel
Description copied from interface:ModelObservationResidualNSpecify the model being evaluated- Specified by:
setModelin interfaceModelObservationResidualN<DMatrixRMaj,AssociatedPair> - Parameters:
F- The model.
-
computeResiduals
Description copied from interface:ModelObservationResidualNCompute the residual errors for the observation- Specified by:
computeResidualsin interfaceModelObservationResidualN<DMatrixRMaj,AssociatedPair> - Parameters:
p- Observation of point feature in two views- Returns:
- The new index. index + getN()
-
getN
public int getN()Description copied from interface:ModelObservationResidualNThe number of outputs- Specified by:
getNin interfaceModelObservationResidualN<DMatrixRMaj,AssociatedPair> - Returns:
- number of outputs
-