2. distoptica

distoptica is a Python library for modelling optical distortions.

Functions

apply_coord_transform

Apply a coordinate transformation to a set of coordinates of points in an undistorted image.

apply_coord_transform_right_inverse

Apply the right inverse of a coordinate transformation to a set of coordinates of points in a distorted image.

from_standard_to_generic_coord_transform_params

Reparameterize a set of standard coordinate transformation parameters to to a set of generic coordinate transformation parameters.

generate_standard_distortion_model

Generate a “standard” optical distortion model.

Classes

CoordTransformParams

The parameters of a generic trigonometric series defining a coordinate transformation.

DistortionModel

An optical distortion model.

LeastSquaresAlgParams

The parameters of the least-squares algorithm to be used to calculate the mapping of fractional Cartesian coordinates of distorted images to those of the corresponding undistorted images.

StandardCoordTransformParams

The parameters of a standard trigonometric series defining a coordinate transformation.

Modules

version