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
-
Method Summary
Modifier and TypeMethodDescriptionint
computeResiduals
(AssociatedPair p, double[] residuals, int index) Compute the residual errors for the observationint
getN()
The number of outputsvoid
Specify the model being evaluated
-
Constructor Details
-
HomographyResidualTransfer
public HomographyResidualTransfer()
-
-
Method Details
-
setModel
Description copied from interface:ModelObservationResidualN
Specify the model being evaluated- Specified by:
setModel
in interfaceModelObservationResidualN<DMatrixRMaj,
AssociatedPair> - Parameters:
F
- The model.
-
computeResiduals
Description copied from interface:ModelObservationResidualN
Compute the residual errors for the observation- Specified by:
computeResiduals
in 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:ModelObservationResidualN
The number of outputs- Specified by:
getN
in interfaceModelObservationResidualN<DMatrixRMaj,
AssociatedPair> - Returns:
- number of outputs
-