sym.orthographic_camera_cal module¶
- class OrthographicCameraCal(focal_length, principal_point)[source]¶
Bases:
object
Autogenerated Python implementation of
symforce.cam.orthographic_camera_cal.OrthographicCameraCal
.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:
focal_length (T.Union[T.Sequence[float], numpy.ndarray]) –
principal_point (T.Union[T.Sequence[float], numpy.ndarray]) –
- pixel_from_camera_point(point, epsilon)[source]¶
Project a 3D point in the camera frame into 2D pixel coordinates.
- Returns:
pixel – (x, y) coordinate in pixels if valid
is_valid – 1 if the operation is within bounds else 0
- Parameters:
point (OrthographicCameraCal) –
epsilon (ndarray) –
- Return type:
- pixel_from_camera_point_with_jacobians(point, epsilon)[source]¶
Project a 3D point in the camera frame into 2D pixel coordinates.
- Returns:
pixel – (x, y) coordinate in pixels if valid
is_valid – 1 if the operation is within bounds else 0
pixel_D_cal – Derivative of pixel with respect to intrinsic calibration parameters
pixel_D_point – Derivative of pixel with respect to point
- Parameters:
point (OrthographicCameraCal) –
epsilon (ndarray) –
- Return type:
- local_coordinates(b, epsilon=1e-08)[source]¶
- Parameters:
b (OrthographicCameraCal) –
epsilon (float) –
- Return type:
- interpolate(b, alpha, epsilon=1e-08)[source]¶
- Parameters:
b (OrthographicCameraCal) –
alpha (float) –
epsilon (float) –
- Return type: