Source code for symforce.cam.orthographic_camera_cal
# ----------------------------------------------------------------------------# SymForce - Copyright 2022, Skydio, Inc.# This source code is under the Apache 2.0 license found in the LICENSE file.# ----------------------------------------------------------------------------importsymforce.internal.symbolicassffromsymforceimportgeofromsymforceimporttypingasTfrom.camera_calimportCameraCal
[docs]classOrthographicCameraCal(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. """NUM_DISTORTION_COEFFS=0