public class PnPDistanceReprojectionSq extends java.lang.Object implements DistanceFromModelMultiView<georegression.struct.se.Se3_F64,Point2D3D>
Computes the reprojection error squared for a given motion and Point2D3D.
If the intrinsic parameters are provided then the error will be computed in pixels. Observations are
assumed to be in normalized image coordinates.
where (x,y) is the observed point location and (x',y') is the reprojected point from the 3D coordinate and coordinate transformation.
| Constructor and Description |
|---|
PnPDistanceReprojectionSq() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeDistance(java.util.List<Point2D3D> observations,
double[] distance) |
double |
computeDistance(Point2D3D pt) |
java.lang.Class<georegression.struct.se.Se3_F64> |
getModelType() |
int |
getNumberOfViews() |
java.lang.Class<Point2D3D> |
getPointType() |
void |
setIntrinsic(int view,
CameraPinhole intrinsic) |
void |
setModel(georegression.struct.se.Se3_F64 worldToCamera) |
public void setModel(georegression.struct.se.Se3_F64 worldToCamera)
setModel in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>public double computeDistance(Point2D3D pt)
computeDistance in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>public void computeDistance(java.util.List<Point2D3D> observations, double[] distance)
computeDistance in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>public java.lang.Class<Point2D3D> getPointType()
getPointType in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>public java.lang.Class<georegression.struct.se.Se3_F64> getModelType()
getModelType in interface org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>public void setIntrinsic(int view,
CameraPinhole intrinsic)
setIntrinsic in interface DistanceFromModelMultiView<georegression.struct.se.Se3_F64,Point2D3D>public int getNumberOfViews()
getNumberOfViews in interface DistanceFromModelMultiView<georegression.struct.se.Se3_F64,Point2D3D>