symforce.cam.orthographic_camera_cal module¶
- class OrthographicCameraCal(focal_length, principal_point, distortion_coeffs=())[source]¶
Bases:
CameraCal
Orthographic camera model with four parameters [fx, fy, cx, cy].
It would be possible to define orthographic cameras with only two parameters [fx, fy] but we keep the [cx, cy] parameters for consistency with the CameraCal interface.
The orthographic camera model can be thought of as a special case of the LinearCameraCal model, where (x,y,z) in the camera frame projects to pixel (x * fx + cx, y * fy + cy). The z-coordinate of the point is ignored in the projection, except that only points with positive z-coordinates are considered valid.
Because this is a noncentral camera model, the camera_ray_from_pixel function is not implemented.
- Parameters:
- NUM_DISTORTION_COEFFS = 0¶