Package boofcv.alg.geo.pose
Class PnPStereoDistanceReprojectionSq
java.lang.Object
boofcv.alg.geo.pose.PnPStereoDistanceReprojectionSq
- All Implemented Interfaces:
DistanceFromModelMultiView<Se3_F64,
,Stereo2D3D> DistanceFromModel<Se3_F64,
Stereo2D3D>
public class PnPStereoDistanceReprojectionSq
extends Object
implements DistanceFromModelMultiView<Se3_F64,Stereo2D3D>
Computes sum of reprojection error squared in pixels for a pair of stereo observations. If the point
is behind either the left or right camera and can't be viewed then Double.MAX_VALUE is returned.
error = dx0^2 + dy0^2 + dx1^2 + dy1^2
where dx0 = residual along x-axis in image 0
-
Constructor Summary
ConstructorDescriptionPnPStereoDistanceReprojectionSq
(NormalizedToPinholePixelError leftPixelError, NormalizedToPinholePixelError rightPixelError, Se3_F64 leftToRight) -
Method Summary
Modifier and TypeMethodDescriptiondouble
distance
(Stereo2D3D pt) void
distances
(List<Stereo2D3D> observations, double[] distance) int
Creates a child which references the intrinsics but is otherwise decoupledvoid
setIntrinsic
(int view, CameraPinhole intrinsic) void
setLeftToRight
(Se3_F64 leftToRight) void
void
-
Constructor Details
-
PnPStereoDistanceReprojectionSq
public PnPStereoDistanceReprojectionSq(NormalizedToPinholePixelError leftPixelError, NormalizedToPinholePixelError rightPixelError, Se3_F64 leftToRight) -
PnPStereoDistanceReprojectionSq
public PnPStereoDistanceReprojectionSq()
-
-
Method Details
-
setLeftToRight
-
setModel
- Specified by:
setModel
in interfaceDistanceFromModel<Se3_F64,
Stereo2D3D>
-
distance
- Specified by:
distance
in interfaceDistanceFromModel<Se3_F64,
Stereo2D3D>
-
distances
- Specified by:
distances
in interfaceDistanceFromModel<Se3_F64,
Stereo2D3D>
-
getPointType
- Specified by:
getPointType
in interfaceDistanceFromModel<Se3_F64,
Stereo2D3D>
-
getModelType
- Specified by:
getModelType
in interfaceDistanceFromModel<Se3_F64,
Stereo2D3D>
-
setIntrinsic
- Specified by:
setIntrinsic
in interfaceDistanceFromModelMultiView<Se3_F64,
Stereo2D3D>
-
getNumberOfViews
public int getNumberOfViews()- Specified by:
getNumberOfViews
in interfaceDistanceFromModelMultiView<Se3_F64,
Stereo2D3D>
-
setStereoParameters
-
newConcurrentChild
Creates a child which references the intrinsics but is otherwise decoupled
-