boofcv.alg.geo.pose
Class PnPStereoResidualReprojection
- java.lang.Object
-
- boofcv.alg.geo.pose.PnPStereoResidualReprojection
-
- All Implemented Interfaces:
- ModelObservationResidualN<StereoPose,Stereo2D3D>
public class PnPStereoResidualReprojection extends java.lang.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 Constructor and Description PnPStereoResidualReprojection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcomputeResiduals(Stereo2D3D data, double[] residuals, int index)Compute the residual errors for the observationintgetN()The number of outputsvoidsetModel(StereoPose model)Specify the model being evaluated
-
-
-
Method Detail
-
setModel
public void setModel(StereoPose model)
Description copied from interface:ModelObservationResidualNSpecify the model being evaluated- Specified by:
setModelin interfaceModelObservationResidualN<StereoPose,Stereo2D3D>- Parameters:
model- The model.
-
computeResiduals
public int computeResiduals(Stereo2D3D data, double[] residuals, int index)
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG