Package boofcv.alg.geo.pose
Class PnPDistanceReprojectionSq
java.lang.Object
boofcv.alg.geo.pose.PnPDistanceReprojectionSq
- All Implemented Interfaces:
DistanceFromModelMultiView<Se3_F64,,Point2D3D> DistanceFromModel<Se3_F64,Point2D3D>
public class PnPDistanceReprojectionSq
extends Object
implements DistanceFromModelMultiView<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 Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiondoublevoidintCreates a child which references the intrinsics but is otherwise decoupledvoidsetIntrinsic(int view, CameraPinhole intrinsic) void
-
Constructor Details
-
PnPDistanceReprojectionSq
-
PnPDistanceReprojectionSq
public PnPDistanceReprojectionSq()
-
-
Method Details
-
setModel
- Specified by:
setModelin interfaceDistanceFromModel<Se3_F64,Point2D3D>
-
distance
- Specified by:
distancein interfaceDistanceFromModel<Se3_F64,Point2D3D>
-
distances
- Specified by:
distancesin interfaceDistanceFromModel<Se3_F64,Point2D3D>
-
getPointType
- Specified by:
getPointTypein interfaceDistanceFromModel<Se3_F64,Point2D3D>
-
getModelType
- Specified by:
getModelTypein interfaceDistanceFromModel<Se3_F64,Point2D3D>
-
setIntrinsic
- Specified by:
setIntrinsicin interfaceDistanceFromModelMultiView<Se3_F64,Point2D3D>
-
getNumberOfViews
public int getNumberOfViews()- Specified by:
getNumberOfViewsin interfaceDistanceFromModelMultiView<Se3_F64,Point2D3D>
-
newConcurrentChild
Creates a child which references the intrinsics but is otherwise decoupled
-