Package boofcv.alg.geo.pose
Class PnPDistanceReprojectionSq
- java.lang.Object
-
- boofcv.alg.geo.pose.PnPDistanceReprojectionSq
-
- All Implemented Interfaces:
DistanceFromModelMultiView<georegression.struct.se.Se3_F64,Point2D3D>,org.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>
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.error = (x'-x)^2 + (y' - y)^2 where (x,y) is the observed point location and (x',y') is the reprojected point from the 3D coordinate and coordinate transformation.
-
-
Constructor Summary
Constructors Constructor Description PnPDistanceReprojectionSq()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecomputeDistance(Point2D3D pt)voidcomputeDistance(java.util.List<Point2D3D> observations, double[] distance)java.lang.Class<georegression.struct.se.Se3_F64>getModelType()intgetNumberOfViews()java.lang.Class<Point2D3D>getPointType()voidsetIntrinsic(int view, CameraPinhole intrinsic)voidsetModel(georegression.struct.se.Se3_F64 worldToCamera)
-
-
-
Method Detail
-
setModel
public void setModel(georegression.struct.se.Se3_F64 worldToCamera)
- Specified by:
setModelin interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>
-
computeDistance
public double computeDistance(Point2D3D pt)
- Specified by:
computeDistancein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>
-
computeDistance
public void computeDistance(java.util.List<Point2D3D> observations, double[] distance)
- Specified by:
computeDistancein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>
-
getPointType
public java.lang.Class<Point2D3D> getPointType()
- Specified by:
getPointTypein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>
-
getModelType
public java.lang.Class<georegression.struct.se.Se3_F64> getModelType()
- Specified by:
getModelTypein interfaceorg.ddogleg.fitting.modelset.DistanceFromModel<georegression.struct.se.Se3_F64,Point2D3D>
-
setIntrinsic
public void setIntrinsic(int view, CameraPinhole intrinsic)- Specified by:
setIntrinsicin interfaceDistanceFromModelMultiView<georegression.struct.se.Se3_F64,Point2D3D>
-
getNumberOfViews
public int getNumberOfViews()
- Specified by:
getNumberOfViewsin interfaceDistanceFromModelMultiView<georegression.struct.se.Se3_F64,Point2D3D>
-
-