pycvcam.core.Distortion#

Note

See the main pycvcam.core.Transform documentation for more details on how to use transformations.

See also

The implemented distortion models are:

Distortion Class#

class Distortion(parameters=None, constants=None)[source]#

Note

This class represents the distortion transformation, which is the central step of the process from the world_points to the image_points. This is the abstract class that defines the interface for distortion transformations.

This base class, set the input_dim and output_dim to 2 and add the aliases :

  • distorted_points and x_d for the result of the transformation.

  • normalized_points and x_n for the result of the inverse transformation.

To process the transformation, the methods distort and undistort are provided, which are aliases for the transform and inverse_transform methods respectively.

Parameters:
  • parameters (Optional[ArrayLike])

  • constants (Optional[ArrayLike])

Adding Public Methods of Distortion subclasses#

Distortion.distort(normalized_points, *[, ...])

Alias for the transform method, which applies the distortion transformation to the points.

Distortion.undistort(distorted_points, *[, ...])

Alias for the inverse_transform method, which applies the inverse distortion transformation to the points.