Package boofcv.alg.geo
Class WorldToCameraToPixel
java.lang.Object
boofcv.alg.geo.WorldToCameraToPixel
Convenience class which will take a point in world coordinates, translate it to camera reference frame,
then project onto the image plane and compute its pixels. Supports lens distortion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(LensDistortionNarrowFOV distortion, Se3_F64 worldToCamera) Specifies intrinsic camera parameters and the transform from world to camera.void
configure
(CameraPinholeBrown intrinsic, Se3_F64 worldToCamera) Specifies intrinsic camera parameters and the transform from world to camera.void
configure
(CameraPinhole intrinsic, Se3_F64 worldToCamera) @Nullable Point2D_F64
transform
(Point3D_F64 worldPt) Computes location of 3D point in world as observed in the camera.boolean
transform
(Point3D_F64 worldPt, Point2D_F64 pixelPt) Computes the observed location of the specified point in world coordinates in the camera pixel.boolean
transform
(Point3D_F64 worldPt, Point2D_F64 pixelPt, Point2D_F64 normPt) boolean
transform
(Point4D_F64 worldPt, Point2D_F64 pixelPt) Computes the observed location of the specified point in world coordinates in the camera pixel.
-
Constructor Details
-
WorldToCameraToPixel
public WorldToCameraToPixel()
-
-
Method Details
-
configure
Specifies intrinsic camera parameters and the transform from world to camera.- Parameters:
intrinsic
- camera parametersworldToCamera
- transform from world to camera
-
configure
-
configure
Specifies intrinsic camera parameters and the transform from world to camera.- Parameters:
distortion
- camera parametersworldToCamera
- transform from world to camera
-
transform
Computes the observed location of the specified point in world coordinates in the camera pixel. If the object can't be viewed because it is behind the camera then false is returned.- Parameters:
worldPt
- Location of point in world framepixelPt
- Pixel observation of point.- Returns:
- True if visible (+z) or false if not visible (-z)
-
transform
-
transform
Computes the observed location of the specified point in world coordinates in the camera pixel. If the object can't be viewed because it is behind the camera then false is returned.- Parameters:
worldPt
- Location of point in world frame. Homogenous coordinates.pixelPt
- Pixel observation of point.- Returns:
- True if visible (+z) or false if not visible (-z)
-
transform
Computes location of 3D point in world as observed in the camera. Point is returned if visible or null if not visible.- Parameters:
worldPt
- Location of point on world reference frame- Returns:
- Pixel coordinate of point or null if not visible
-