sym.atan_camera_cal module#
- class ATANCameraCal(focal_length, principal_point, omega)[source]#
Bases:
object
Autogenerated Python implementation of
symforce.cam.atan_camera_cal.ATANCameraCal
.ATAN camera with 5 parameters [fx, fy, cx, cy, omega].
(fx, fy) representing focal length, (cx, cy) representing principal point, and omega representing the distortion parameter.
See here for more details: https://hal.inria.fr/inria-00267247/file/distcalib.pdf
- Parameters:
focal_length (T.Union[T.Sequence[float], numpy.ndarray]) –
principal_point (T.Union[T.Sequence[float], numpy.ndarray]) –
omega (float) –
- 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 (ATANCameraCal) –
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 (ATANCameraCal) –
epsilon (ndarray) –
- Return type:
- camera_ray_from_pixel(pixel, epsilon)[source]#
Backproject a 2D pixel coordinate into a 3D ray in the camera frame.
- Returns:
camera_ray – The ray in the camera frame (NOT normalized)
is_valid – 1 if the operation is within bounds else 0
- Parameters:
pixel (ATANCameraCal) –
epsilon (ndarray) –
- Return type:
- camera_ray_from_pixel_with_jacobians(pixel, epsilon)[source]#
Backproject a 2D pixel coordinate into a 3D ray in the camera frame.
- Returns:
camera_ray – The ray in the camera frame (NOT normalized)
is_valid – 1 if the operation is within bounds else 0
point_D_cal – Derivative of point with respect to intrinsic calibration parameters
point_D_pixel – Derivation of point with respect to pixel
- Parameters:
pixel (ATANCameraCal) –
epsilon (ndarray) –
- Return type:
- local_coordinates(b, epsilon=1e-08)[source]#
- Parameters:
b (ATANCameraCal) –
epsilon (float) –
- Return type:
- interpolate(b, alpha, epsilon=1e-08)[source]#
- Parameters:
b (ATANCameraCal) –
alpha (float) –
epsilon (float) –
- Return type: