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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptiondouble
void
int
Creates a child which references the intrinsics but is otherwise decoupledvoid
setIntrinsic
(int view, CameraPinhole intrinsic) void
-
Constructor Details
-
PnPDistanceReprojectionSq
-
PnPDistanceReprojectionSq
public PnPDistanceReprojectionSq()
-
-
Method Details
-
setModel
- Specified by:
setModel
in interfaceDistanceFromModel<Se3_F64,
Point2D3D>
-
distance
- Specified by:
distance
in interfaceDistanceFromModel<Se3_F64,
Point2D3D>
-
distances
- Specified by:
distances
in interfaceDistanceFromModel<Se3_F64,
Point2D3D>
-
getPointType
- Specified by:
getPointType
in interfaceDistanceFromModel<Se3_F64,
Point2D3D>
-
getModelType
- Specified by:
getModelType
in interfaceDistanceFromModel<Se3_F64,
Point2D3D>
-
setIntrinsic
- Specified by:
setIntrinsic
in interfaceDistanceFromModelMultiView<Se3_F64,
Point2D3D>
-
getNumberOfViews
public int getNumberOfViews()- Specified by:
getNumberOfViews
in interfaceDistanceFromModelMultiView<Se3_F64,
Point2D3D>
-
newConcurrentChild
Creates a child which references the intrinsics but is otherwise decoupled
-