Package boofcv.alg.geo.pose
Class PnPStereoResidualReprojection
java.lang.Object
boofcv.alg.geo.pose.PnPStereoResidualReprojection
- All Implemented Interfaces:
ModelObservationResidualN<StereoPose,Stereo2D3D>
public class PnPStereoResidualReprojection
extends Object
implements ModelObservationResidualN<StereoPose,Stereo2D3D>
Computes the predicted residual as a simple geometric distance between the observed and predicted
point observation in normalized pixel coordinates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcomputeResiduals(Stereo2D3D data, double[] residuals, int index) Compute the residual errors for the observationintgetN()The number of outputsvoidsetModel(StereoPose model) Specify the model being evaluated
-
Constructor Details
-
PnPStereoResidualReprojection
public PnPStereoResidualReprojection()
-
-
Method Details
-
setModel
Description copied from interface:ModelObservationResidualNSpecify the model being evaluated- Specified by:
setModelin interfaceModelObservationResidualN<StereoPose,Stereo2D3D> - Parameters:
model- The model.
-
computeResiduals
Description copied from interface:ModelObservationResidualNCompute the residual errors for the observation- Specified by:
computeResidualsin interfaceModelObservationResidualN<StereoPose,Stereo2D3D> - Parameters:
data- 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<StereoPose,Stereo2D3D> - Returns:
- number of outputs
-