Package boofcv.alg.sfm.overhead
Class CameraPlaneProjection
java.lang.Object
boofcv.alg.sfm.overhead.CameraPlaneProjection
Computes the location of a point on the plane from an observation in pixels and the reverse.
See
CreateSyntheticOverheadView for details about reference frames and how the plane is defined.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleannormalToPlane(double normX, double normY, Point2D_F64 plane) Given a pixel in normalized coordinates, find the point on the plane.booleanpixelToPlane(double pixelX, double pixelY, Point2D_F64 plane) Given a pixel, find the point on the plane.booleanplaneToNormalized(double pointX, double pointY, Point2D_F64 normalized) Given a point on the plane find the normalized image coordinatebooleanplaneToPixel(double pointX, double pointY, Point2D_F64 pixel) Given a point on the plane find the pixel in the image.voidsetConfiguration(Se3_F64 planeToCamera, CameraPinholeBrown intrinsic) Configures the camera's intrinsic and extrinsic parametersvoidsetIntrinsic(CameraPinholeBrown intrinsic) Configures the camera's intrinsic parametersvoidsetPlaneToCamera(Se3_F64 planeToCamera, boolean computeInverse) Specifies camera's extrinsic parameters.
-
Constructor Details
-
CameraPlaneProjection
public CameraPlaneProjection()
-
-
Method Details
-
setConfiguration
Configures the camera's intrinsic and extrinsic parameters- Parameters:
planeToCamera- Transform from the plane to the cameraintrinsic- Pixel to normalized image coordinates
-
setIntrinsic
Configures the camera's intrinsic parameters- Parameters:
intrinsic- Intrinsic camera parameters
-
setPlaneToCamera
Specifies camera's extrinsic parameters.- Parameters:
planeToCamera- Transform from plane to camera reference framecomputeInverse- Set to true if pixelToPlane is going to be called. performs extra calculation
-
planeToPixel
Given a point on the plane find the pixel in the image.- Parameters:
pointX- (input) Point on the plane, x-axispointY- (input) Point on the plane, y-axispixel- (output) Pixel in the image- Returns:
- true if the point is in front of the camera. False if not.
-
planeToNormalized
Given a point on the plane find the normalized image coordinate- Parameters:
pointX- (input) Point on the plane, x-axispointY- (input) Point on the plane, y-axisnormalized- (output) Normalized image coordinate of pixel- Returns:
- true if the point is in front of the camera. False if not.
-
pixelToPlane
Given a pixel, find the point on the plane. Be sure computeInverse was set to true insetPlaneToCamera(georegression.struct.se.Se3_F64, boolean)- Parameters:
pixelX- (input) Pixel in the image, x-axispixelY- (input) Pixel in the image, y-axisplane- (output) Point on the plane.- Returns:
- true if a point on the plane was found in front of the camera
-
normalToPlane
Given a pixel in normalized coordinates, find the point on the plane. Make sure invert was set to true insetPlaneToCamera(georegression.struct.se.Se3_F64, boolean)- Parameters:
normX- (input) Image pixel in normalized coordinates, x-axisnormY- (input) Image pixel in normalized coordinates, y-axisplane- (output) Point on the plane.- Returns:
- true if a point on the plane was found in front of the camera
-