Package boofcv.alg.sfm.robust
Class DistancePlane2DToPixelSq
java.lang.Object
boofcv.alg.sfm.robust.DistancePlane2DToPixelSq
- All Implemented Interfaces:
DistanceFromModel<Se2_F64,
PlanePtPixel>
public class DistancePlane2DToPixelSq
extends Object
implements DistanceFromModel<Se2_F64,PlanePtPixel>
Computes the difference between a predicted observation and the actual observation. The prediction is done
by applying a transform on a point in on a 2D plane then rendering it onto the camera.
-
Constructor Summary
ConstructorDescriptionDistancePlane2DToPixelSq
(CameraPlaneProjection planeProjection, NormalizedToPinholePixelError errorCamera) -
Method Summary
Modifier and TypeMethodDescriptiondouble
distance
(PlanePtPixel sample) void
distances
(List<PlanePtPixel> samples, double[] distance) Creates a new instances for concurrency.void
setExtrinsic
(Se3_F64 planeToCamera) Specify extrinsic camera propertiesvoid
setIntrinsic
(double fx, double fy, double skew) Specify intrinsic camera propertiesvoid
-
Constructor Details
-
DistancePlane2DToPixelSq
public DistancePlane2DToPixelSq(CameraPlaneProjection planeProjection, NormalizedToPinholePixelError errorCamera) -
DistancePlane2DToPixelSq
public DistancePlane2DToPixelSq()
-
-
Method Details
-
setExtrinsic
Specify extrinsic camera properties- Parameters:
planeToCamera
- Transform from plane to camera reference frame
-
setIntrinsic
public void setIntrinsic(double fx, double fy, double skew) Specify intrinsic camera properties- Parameters:
fx
- focal length xfy
- focal length yskew
- camera skew
-
setModel
- Specified by:
setModel
in interfaceDistanceFromModel<Se2_F64,
PlanePtPixel>
-
distance
- Specified by:
distance
in interfaceDistanceFromModel<Se2_F64,
PlanePtPixel>
-
distances
- Specified by:
distances
in interfaceDistanceFromModel<Se2_F64,
PlanePtPixel>
-
getPointType
- Specified by:
getPointType
in interfaceDistanceFromModel<Se2_F64,
PlanePtPixel>
-
getModelType
- Specified by:
getModelType
in interfaceDistanceFromModel<Se2_F64,
PlanePtPixel>
-
newConcurrent
Creates a new instances for concurrency. Calibration data is shared between all instance so that only one needs to be updated.
-