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