symforce.cam.linear_camera_cal module¶
- class LinearCameraCal(focal_length, principal_point, distortion_coeffs=())[source]¶
Bases:
CameraCal
Standard pinhole camera w/ four parameters [fx, fy, cx, cy].
(fx, fy) representing focal length; (cx, cy) representing principal point.
- Parameters:
- NUM_DISTORTION_COEFFS = 0¶
- static project(point, epsilon=0.0)[source]¶
Linearly project the 3D point by dividing by the depth.
Points behind the camera (z <= 0 in the camera frame) are marked as invalid.
- pixel_from_unit_depth(unit_depth_coords)[source]¶
Convert point in unit-depth image plane to pixel coords by applying camera matrix.
- unit_depth_from_pixel(pixel)[source]¶
Convert point in pixel coordinates to unit-depth image plane by applying K_inv.
- pixel_from_camera_point(point, epsilon=0.0)[source]¶
Project a 3D point in the camera frame into 2D pixel coordinates.