Sensor Models#

NCore supports multiple sensor models for representing camera and lidar intrinsics and distortion parameters. Each model provides different parameterizations suited for various sensor types and use cases.

Camera Models#

The following camera models are supported:

Camera Model Parameterizations#

Camera models may optionally include external distortion parameters to account for distortion sources outside the camera itself (e.g., windshields). See External Distortion Models for details.

The camera_model_parameters dictionary will unconditionally contain:

  • resolution - width and height of the image in pixels (uint32, [2,])

  • shutter_type - shutter type of the camera’s imaging sensor (str, one of [ROLLING_TOP_TO_BOTTOM, ROLLING_LEFT_TO_RIGHT, ROLLING_BOTTOM_TO_TOP, ROLLING_RIGHT_TO_LEFT, GLOBAL])

FTheta Camera Model#

If camera_model_type = 'ftheta' the following intrinsic parameters will additionally be available in camera_model_parameters:

  • principal_point - u and v coordinate of the principal point, following the NVIDIA default convention for FTheta camera models in which the pixel indices represent the center of the pixel (not the top-left corners). NOTE: principal point coordinates will be adapted internally in camera model APIs to reflect the image coordinate conventions (float32, [2,])

  • reference_poly - indicating which of the two polynomials is the reference polynomial - the other polynomial is only an approximation of the inverse of the reference polynomial (str, one of [PIXELDIST_TO_ANGLE, ANGLE_TO_PIXELDIST])

  • pixeldist_to_angle_poly - coefficients of the backward distortion polynomial (conditionally approximate, depending on reference_poly), mapping pixel-distances to angles [rad] (float32, [6,])

  • angle_to_pixeldist_poly - coefficients of the forward distortion polynomial (conditionally approximate, depending on reference_poly), mapping angles [rad] to pixel-distances (float32, [6,])

  • max_angle - maximal extrinsic ray angle [rad] with the principal direction (float32)

  • linear_cde - Coefficients of the constrained linear term \(\begin{bmatrix} c & d \\ e & 1 \end{bmatrix}\) transforming between sensor coordinates (in mm) to image coordinates (in px) (float32, [3,], optional, defaults to [1, 0, 0], omitted when serializing if identity)

  • tangential_coeffs - tangential distortion coefficients [t0,t1] [px] parameterizing the tangential distortion components \(\begin{bmatrix} 2t_0x'y' + t_1 \left(r^2 + 2{x'}^2 \right) \\ 2t_1x'y' + t_0 \left(r^2 + 2{y'}^2 \right) \end{bmatrix}\) for normalized camera coordinates \(\begin{bmatrix} x' \\ y' \end{bmatrix}\) and \(r^2 = {x'}^2 + {y'}^2\). Non-zero coefficients require max_angle < \(\pi/2\) (float32, [2,], optional, defaults to zeros, omitted when serializing if zero)

Mathematical Model#

The FTheta model projects 3D camera rays to image coordinates through the following steps:

  1. Ray to Angle: Convert camera ray direction [x, y, z] to angle θ:

    \[\theta = \arctan2(\sqrt{x^2 + y^2}, z)\]
  2. Angle to Pixel Distance: Apply the forward polynomial f(θ):

    \[\delta = f(\theta) = c_0 + c_1\theta + c_2\theta^2 + c_3\theta^3 + c_4\theta^4 + c_5\theta^5\]
  3. Tangential Distortion: Evaluate the tangential distortion [px] at the normalized camera coordinates (zero if tangential_coeffs are zero):

    \[ \begin{align}\begin{aligned}x' = \frac{x}{z}, \quad y' = \frac{y}{z}, \quad r^2 = {x'}^2 + {y'}^2\\\begin{split}T(x', y') = \begin{bmatrix} 2t_0x'y' + t_1(r^2 + 2{x'}^2) \\ 2t_1x'y' + t_0(r^2 + 2{y'}^2) \end{bmatrix}\end{split}\end{aligned}\end{align} \]

    The angle is clamped to max_angle when evaluating \(x', y'\), keeping them finite for (invalid) rays beyond the FOV.

  4. Linear Transformation: Add the tangential distortion before applying the constrained linear transformation A, and add the principal point:

    \[\begin{split}\begin{bmatrix} u \\ v \end{bmatrix} = \begin{bmatrix} c & d \\ e & 1 \end{bmatrix} \left( \frac{\delta}{\sqrt{x^2 + y^2}} \begin{bmatrix} x \\ y \end{bmatrix} + T(x', y') \right) + \begin{bmatrix} u_0 \\ v_0 \end{bmatrix}\end{split}\]

The inverse operation uses the backward polynomial (either reference or approximate inverse). With tangential distortion, the inverse is evaluated by a fixed number of fixed-point iterations (the keyword-only tangential_iterations argument of FThetaCameraModel, 4 by default) starting from the purely radial solution.

Example: For a typical FTheta model, both forward and backward polynomials contain 6 coefficients each (float32, [6,]).

Ideal Pinhole Camera Model#

If camera_model_type = 'ideal-pinhole' the following intrinsic parameters will additionally be available in camera_model_parameters:

  • principal_point - u and v coordinate of the principal point, following the image coordinate conventions (float32, [2,])

  • focal_length - focal lengths in u and v direction, resp., mapping normalized camera coordinates to image coordinates relative to the principal point (float32, [2,])

Mathematical Model#

The ideal pinhole model is a distortion-free perspective projection. It is the most efficient camera model (no distortion polynomial evaluation, no iterative undistortion) and the natural target for rectification.

  1. Normalize: Convert camera ray [x, y, z] to normalized coordinates:

    \[x' = \frac{x}{z}, \quad y' = \frac{y}{z}\]
  2. Project to Image: Apply focal length and principal point:

    \[\begin{split}\begin{bmatrix} u \\ v \end{bmatrix} = \begin{bmatrix} f_u x' + u_0 \\ f_v y' + v_0 \end{bmatrix}\end{split}\]

Unprojection is the closed-form inverse \(x' = (u - u_0) / f_u\), \(y' = (v - v_0) / f_v\), followed by normalization of [x', y', 1].

Note

An OpenCV Pinhole whose distortion coefficients are all zero (and which carries no external distortion) is equivalent to an ideal pinhole and is evaluated through the same closed-form path internally. The ideal-pinhole and opencv-pinhole model types are siblings: an OpenCV pinhole is not an instance of an ideal pinhole.

OpenCV Pinhole Camera Model#

If camera_model_type = 'opencv-pinhole' the following intrinsic parameters will additionally be available in camera_model_parameters:

  • principal_point - u and v coordinate of the principal point, following the image coordinate conventions (float32, [2,])

  • focal_length - focal lengths in u and v direction, resp., mapping (distorted) normalized camera coordinates to image coordinates relative to the principal point (float32, [2,])

  • radial_coeffs - radial distortion coefficients [k1,k2,k3,k4,k5,k6] parameterizing the rational radial distortion factor \(\frac{1 + k_1r^2 + k_2r^4 + k_3r^6}{1 + k_4r^2 + k_5r^4 + k_6r^6}\) for squared norms \(r^2\) of normalized camera coordinates (float32, [6,])

  • tangential_coeffs - tangential distortion coefficients [p1,p2] parameterizing the tangential distortion components \(\begin{bmatrix} 2p_1x'y' + p_2 \left(r^2 + 2{x'}^2 \right) \\ p_1 \left(r^2 + 2{y'}^2 \right) + 2p_2x'y' \end{bmatrix}\) for normalized camera coordinates \(\begin{bmatrix} x' \\ y' \end{bmatrix}\) (float32, [2,], optional, defaults to zeros)

  • thin_prism_coeffs - thins prism distortion coefficients [s1,s2,s3,s4] parameterizing the thin prism distortion components \(\begin{bmatrix} s_1r^2 + s_2r^4 \\ s_3r^2 + s_4r^4 \end{bmatrix}\) for squared norms \(r^2\) of normalized camera coordinates (float32, [4,], optional, defaults to zeros)

Mathematical Model#

The OpenCV Pinhole model applies radial, tangential, and thin prism distortions:

  1. Normalize: Convert camera ray [x, y, z] to normalized coordinates:

    \[x' = \frac{x}{z}, \quad y' = \frac{y}{z}, \quad r^2 = {x'}^2 + {y'}^2\]
  2. Radial Distortion: Apply rational radial distortion factor:

    \[d_r = \frac{1 + k_1r^2 + k_2r^4 + k_3r^6}{1 + k_4r^2 + k_5r^4 + k_6r^6}\]
  3. Tangential Distortion:

    \[\begin{split}\begin{bmatrix} \Delta x_t \\ \Delta y_t \end{bmatrix} = \begin{bmatrix} 2p_1x'y' + p_2(r^2 + 2{x'}^2) \\ p_1(r^2 + 2{y'}^2) + 2p_2x'y' \end{bmatrix}\end{split}\]
  4. Thin Prism Distortion:

    \[\begin{split}\begin{bmatrix} \Delta x_p \\ \Delta y_p \end{bmatrix} = \begin{bmatrix} s_1r^2 + s_2r^4 \\ s_3r^2 + s_4r^4 \end{bmatrix}\end{split}\]
  5. Project to Image: Apply focal length and principal point:

    \[\begin{split}\begin{bmatrix} u \\ v \end{bmatrix} = \begin{bmatrix} f_u(x'd_r + \Delta x_t + \Delta x_p) + u_0 \\ f_v(y'd_r + \Delta y_t + \Delta y_p) + v_0 \end{bmatrix}\end{split}\]

Example: Typical parameter sizes: radial_coeffs [6,], tangential_coeffs [2,], thin_prism_coeffs [4,], all float32.

The inverse operation undistorts image points by fixed-point iterations, which run until every point converged (or for a maximum number of iterations); points whose iteration did not converge are invalid. Camera rays beyond the first extremum of the radially distorted radius are invalid as well (see compute_max_normalized_radius_squared()).

OpenCV Fisheye Camera Model#

If camera_model_type = 'opencv-fisheye' the following intrinsic parameters will additionally be available in camera_model_parameters:

  • principal_point - u and v coordinate of the principal point, following the image coordinate conventions (float32, [2,])

  • focal_length - focal lengths in u and v direction, resp., mapping (distorted) normalized camera coordinates to image coordinates relative to the principal point (float32, [2,])

  • radial_coeffs - radial distortion coefficients representing OpenCV-style [k1,k2,k3,k4] parameters of the fisheye distortion polynomial \(\theta(1 + k_1\theta^2 + k_2\theta^4 + k_3\theta^6 + k_4\theta^8)\) for extrinsic camera ray angles \(\theta\) with the principal direction (float32, [4,])

  • max_angle - maximal extrinsic ray angle [rad] with the principal direction (float32)

Mathematical Model#

The OpenCV Fisheye model uses a fisheye distortion polynomial:

  1. Ray to Angle: Convert camera ray direction [x, y, z] to angle θ and normalized direction:

    \[\theta = \arctan2(\sqrt{x^2 + y^2}, z)\]
    \[x_n = \frac{x}{\sqrt{x^2 + y^2}}, \quad y_n = \frac{y}{\sqrt{x^2 + y^2}}\]
  2. Fisheye Distortion Polynomial: Apply distortion to angle:

    \[\delta(\theta) = \theta(1 + k_1\theta^2 + k_2\theta^4 + k_3\theta^6 + k_4\theta^8)\]
  3. Project to Image: Scale by focal length and add principal point:

    \[\begin{split}\begin{bmatrix} u \\ v \end{bmatrix} = \begin{bmatrix} f_u \delta(\theta) x_n + u_0 \\ f_v \delta(\theta) y_n + v_0 \end{bmatrix}\end{split}\]

The inverse operation inverts the ninth-degree polynomial \(\delta(\theta)\) on its increasing branch (up to its first stationary point, which may extend beyond max_angle) by Newton-Raphson iterations, safeguarded by a bracket on that branch for points where plain Newton iterations don’t converge. The newton_iterations argument of OpenCVFisheyeCameraModel (keyword-only, 20 by default) bounds the number of iterations, which stop early once all points converged. Image points beyond the maximum of the polynomial have no inverse and are mapped to the boundary ray of the branch. Example: The radial_coeffs parameter contains \([k_1, k_2, k_3, k_4]\) (float32, [4,]).

External Distortion Models#

Camera models can optionally include external distortion sources that affect rays before they reach the camera lens (e.g., windshields). If present, the camera_model_parameters dictionary will contain:

  • external_distortion_parameters - parameters for the external distortion model (optional, may be None)

When external_distortion_parameters is present, it will contain:

  • external_distortion_type - type of external distortion (str)

Bivariate Windshield Model#

If external_distortion_type = 'bivariate-windshield', this models optical distortion caused by a vehicle’s windshield. This model is only applicable when the camera’s entire field of view projects through the windshield.

Mathematical Model#

The distortion operates on spherical angle representations of sensor rays with direction [x, y, z]:

  1. Convert to Spherical Angles:

    \[\phi = \arcsin\left(\frac{x}{\sqrt{x^2 + y^2 + z^2}}\right) \quad \text{(horizontal angle)}\]
    \[\theta = \arcsin\left(\frac{y}{\sqrt{x^2 + y^2 + z^2}}\right) \quad \text{(vertical angle)}\]
  2. Apply Bivariate Polynomial Distortion:

    Distortion is applied via separate polynomials for horizontal and vertical components:

    \[\phi' = P_h(\phi, \theta)\]
    \[\theta' = P_v(\phi, \theta)\]

    Where each polynomial has the bivariate form (example for order N=2):

    \[P(\phi, \theta) = c_0 + c_1\phi + c_2\phi^2 + (c_3 + c_4\phi)\theta + c_5\theta^2\]

    General form for order N:

    \[P(\phi, \theta) = \sum_{j=0}^{N} \left(\sum_{i=0}^{N-j} c_{i,j}\phi^i\right)\theta^j\]
  3. Reconstruct Distorted Ray:

    \[[x', y', z'] = \left[\sin(\phi'), \sin(\theta'), \sqrt{1 - \sin^2(\phi') - \sin^2(\theta')}\right]\]

Parameters#

The following parameters will be available in external_distortion_parameters:

  • reference_poly - indicates which polynomial is the reference (str, one of [FORWARD, BACKWARD]). The reference polynomial is exact; the other is an approximate inverse computed during calibration.

  • horizontal_poly - coefficients for forward horizontal distortion polynomial P_h (float32, [(N+1)·(N+2)/2,])

  • vertical_poly - coefficients for forward vertical distortion polynomial P_v (float32, [(M+1)·(M+2)/2,])

  • horizontal_poly_inverse - coefficients for backward horizontal distortion (float32, [(N+1)·(N+2)/2,])

  • vertical_poly_inverse - coefficients for backward vertical distortion (float32, [(M+1)·(M+2)/2,])

Example: For a 2nd-order bivariate polynomial (N=2), the coefficient arrays contain 6 elements: [c₀, c₁, c₂, c₃, c₄, c₅]. For a 3rd-order polynomial (N=3), they contain 10 elements. The number of coefficients for order N is given by: (N+1)·(N+2)/2

Direction#

  • Forward distortion (distort_camera_rays): transforms rays from external (world) to internal (camera sensor)

  • Backward distortion (undistort_camera_rays): transforms rays from internal (camera sensor) to external (world)

Rectification#

Rectification maps imagery from a source camera into a target camera’s image domain. It is a generic “from-camera -> to-camera” intrinsic remap within a shared camera frame; the most common use is mapping a distorted source camera to a distortion-free ideal pinhole target, but the target may itself be distorted.

Deriving an ideal target#

The IdealPinholeCameraModelParameters.from_source(source, target_fov=None) factory builds an ideal pinhole approximating any supported source camera. It extracts the source’s paraxial pinhole geometry (focal length, principal point, resolution), preserving the source focal aspect ratio:

  • Ideal / OpenCV pinhole / OpenCV fisheye: the model’s own focal_length (anisotropic fx != fy preserved; OpenCV pinhole distortion is dropped).

  • FTheta: the first-order coefficient of the angles-to-pixeldistances (forward) polynomial scaled by the linear term, i.e. [c1 * c, c1] with \(c_1 = \mathrm{angle\_to\_pixeldist\_poly}[1]\) and \(c = \mathrm{linear\_cde}[0]\), since \(\mathrm{d}\,\delta/\mathrm{d}\theta|_{\theta=0} = c_1\) and \(r = f\tan\theta \approx f\theta\) near \(\theta = 0\) (the linear term’s shear components are not representable by a pinhole and are dropped; the tangential distortion terms are of higher order and not part of the paraxial geometry, so they are ignored as well).

The target_fov argument selects the angular extent of the rectified pinhole as a full field-of-view angle [rad]:

  • None: use the source’s natural field of view (the paraxial focal). A pinhole focal always yields a field of view strictly below 180 degrees, so for wide fisheye / omnidirectional cameras this is a narrow rectilinear central window of the captured scene.

  • float: an isotropic target full field of view, preserving the source focal aspect ratio (the most binding image axis lands exactly at this value).

  • np.ndarray of shape [2,]: per-axis target full field of view [fov_x, fov_y].

target_fov selects which rays the pinhole covers, not a magnification: because a pinhole maps angle to pixel distance as \(r = f\tan\theta\), different values yield genuinely different views (the periphery stretches increasingly for wider fields of view; the optical axis stays fixed). Widening past the source’s captured field of view is allowed and yields invalid (out-of-source) regions, which the Rectificator zeroes. from_source() raises ValueError if a requested field of view cannot be represented by a pinhole (any axis at or beyond 180 degrees), and TypeError for an unsupported source model.

Use IdealPinholeCameraModelParameters.natural_fov(source) (per-axis full FOV np.ndarray) to discover a sensible value to scale, e.g.:

import numpy as np
from ncore.data import IdealPinholeCameraModelParameters
from ncore.sensors import Rectificator, camera_model_from_parameters

source_params = source_model.get_parameters()

# Default rectification (source's natural field of view)
target_params = IdealPinholeCameraModelParameters.from_source(source_params)

# Widen by 20% (e.g. to recover more of a wide lens) or set an explicit FOV
target_params = IdealPinholeCameraModelParameters.from_source(
    source_params, target_fov=1.2 * IdealPinholeCameraModelParameters.natural_fov(source_params)
)
target_params = IdealPinholeCameraModelParameters.from_source(source_params, target_fov=np.radians(90.0))

target = camera_model_from_parameters(target_params)
rect = Rectificator(source_model, target)

Rectificator#

The Rectificator is constructed from a source/target CameraModel pair and builds a backward sample map (target -> source) once:

  1. each target pixel is unprojected to a ray with the target model,

  2. the ray is re-projected to a source image coordinate with the source model.

It exposes:

  • sample_map - [H, W, 2] source image coordinates to sample for each target pixel (usable directly with custom / GPU / OpenCV resampling).

  • valid_mask - [H, W] boolean mask of target pixels that have a valid ray within the target’s calibrated field of view, which projects validly into the source (inside the source image and within the source’s field of view, see Ray Validity).

  • apply(image, mode="bilinear", padding_mode="zeros") - resamples a source image ([H, W], [H, W, C] or [N, H, W, C], channels-last) into the target domain, zeroing invalid pixels. mode selects the interpolation ("bilinear", "nearest" or "bicubic") and padding_mode the out-of-bounds sampling behaviour ("zeros", "border" or "reflection"); both are forwarded to torch.nn.functional.grid_sample.

  • source_points_to_target(points) / target_points_to_source(points) - map sparse continuous image points between the two cameras.

Lidar Models#

NCore supports the following lidar models:

Lidar Model Parameterizations#

The lidar_model_parameters dictionary contains model-specific parameters for lidar sensors. Currently, the supported model type is row-offset-spinning.

Row-Offset Structured Spinning Lidar Model#

If lidar_model_type = 'row-offset-spinning', this models structured spinning lidar sensors with per-row azimuth offsets (compatible with sensors like Hesai P128).

Mathematical Model#

The Row-Offset Structured Spinning Lidar model parameterizes lidar returns using per-row elevation angles and per-column azimuth angles with row-specific offsets.

Notation#

  • α (alpha): elevation angle in radians

  • β (beta): azimuth angle in radians

  • E: row_elevations_rad array - elevation angles per row

  • B: column_azimuths_rad array - base azimuth angles per column

  • Δ (Delta): row_azimuth_offsets_rad array - azimuth offsets per row (optional, can be zero if no row offsets)

  • i: row index

  • j: column index

  1. Element to Angles: For element (i, j):

    \[\alpha = E[i]\]
    \[\beta = B[j] + \Delta[i]\]
  2. Angles to Sensor Ray: Convert spherical angles to 3D ray direction:

    \[x = \cos(\beta) \cdot \cos(\alpha)\]
    \[y = \sin(\beta) \cdot \cos(\alpha)\]
    \[z = \sin(\alpha)\]
  3. Sensor Ray to Angles: Convert 3D ray [x, y, z] to angles:

    \[\alpha = \arcsin(z)\]
    \[\beta = \arctan2(y, x)\]

Parameters#

The following parameters will be available in lidar_model_parameters:

  • row_elevations_rad - elevation angle for each row (float32, [n_rows,])

  • column_azimuths_rad - base azimuth angle for each column (float32, [n_columns,])

  • row_azimuth_offsets_rad - azimuth offset for each row (float32, [n_rows,])

  • spinning_frequency_hz - rotation frequency in Hz (float32)

  • spinning_direction - rotation direction (str, one of [‘cw’, ‘ccw’])

  • n_rows - number of vertical laser channels (int)

  • n_columns - number of azimuth divisions per revolution (int)

Example: A Hesai P128 lidar would have n_rows=128 (for 128 laser channels), with row_elevations_rad containing 128 elevation angles and row_azimuth_offsets_rad containing 128 azimuth offsets.

Ray Validity#

Camera and lidar models return a boolean valid_flag per point or ray with every projection and unprojection. Values of invalid entries are undefined (model-specific, possibly non-finite) and need to be masked.

Unprojections#

CameraModel.image_points_to_camera_rays and pixels_to_camera_rays return a CameraRaysReturn (camera_rays and valid_flag). A ray is valid if the model has a well-defined ray for the image point within its calibrated field of view, independent of the image bounds:

  • FTheta / OpenCV fisheye: the angle of the ray with the principal direction is smaller than max_angle (FTheta: and the inverse polynomial yields a finite, non-negative angle).

  • OpenCV pinhole: the iterative undistortion converged, and the normalized coordinates of the ray lie within the bound of the radial distortion (see below).

  • Ideal pinhole: always valid.

The world-ray unprojections (image_points_to_world_rays_* / pixels_to_world_rays_*) forward the flag of the camera rays (WorldRaysReturn.valid_flag). Precomputed camera rays are passed via camera_rays= as a CameraRaysReturn, whose flag is forwarded the same way; wrap rays known to be valid with CameraRaysReturn.all_valid(rays).

Structured lidar models return the rays of their elements with a flag as well: elements_to_sensor_rays returns a SensorRaysReturn (sensor_rays and valid_flag), elements_to_sensor_points a SensorPointsReturn (sensor_points and valid_flag), and elements_to_world_rays_shutter_pose forwards the flag to LidarModel.WorldRaysReturn (precomputed rays are passed via sensor_rays= as a SensorRaysReturn, see SensorRaysReturn.all_valid). Rays of the elements of the row-offset spinning lidar model are always valid.

Projections#

camera_rays_to_image_points / camera_rays_to_pixels flag projections as valid if the ray projects into the image and lies within the model’s field of view: for FTheta / OpenCV fisheye within max_angle, for pinholes in front of the camera (and for OpenCV pinhole within the bound of the radial distortion). If the rays are given as a CameraRaysReturn, their flag is combined with the projection’s, i.e., invalid rays result in invalid image points (e.g., the Rectificator marks target pixels without a valid target ray invalid).

The world_points_to_* projections of camera and lidar models return the projections of the valid points (of all points with return_all_projections=True) and a valid_flag over all input points (WorldPointsToImagePointsReturn, WorldPointsToPixelsReturn, WorldPointsToSensorAnglesReturn). valid_indices (return_valid_indices=True) are the 1-D indices of the valid points.

Lidar sensor angles are valid within the field of view of the sensor (LidarModel.sensor_rays_to_sensor_angles, which combines the flag of rays given as a SensorRaysReturn).

OpenCV pinhole radius bound#

The rational radial distortion of the OpenCV pinhole model maps distinct rays to the same image points beyond the first extremum of the distorted radius \(r \, d_r(r)\). Rays whose squared normalized radius \(r^2 = {x'}^2 + {y'}^2\) is at or beyond the first extremum (or a pole of \(d_r\)) are invalid, for projections and unprojections alike. The bound is derived from the radial coefficients by OpenCVPinholeCameraModelParameters.compute_max_normalized_radius_squared (math.inf if the distortion has neither). The keyword-only max_normalized_radius_squared argument of OpenCVPinholeCameraModel overrides it (math.inf: no bound); it is a setting of the model instance, not a camera model parameter, so stored data is unaffected. Tangential and thin-prism distortions are not taken into account.