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