Corrections#
Corrections are callables that take an Image and return a corrected
Image. Colour corrections calibrate recorded colours against a colour
checker or reference illumination; shape corrections change the geometry of the
data container (curvature, perspective, drift, deformation). All of them derive
from BaseCorrection and can be passed to imread() to run during
reading.
Base#
Abstract base correction, providing template for tailored corrections. |
|
|
Correction to convert image to a specified data type. |
|
General function to read corrections from a file. |
Colour correction#
With a known or approximately known colour-checker location, recorded colours are matched to reference values.
|
Color correction with user-specified location of a color checker. |
Base class for color checkers. |
|
Definition of the classic color checker under (hardcoded) default illumination conditions. |
|
|
Swatch colors determined from user-prescribed input image. |
Definition of the classic color checker under default illumination conditions. |
|
|
Detect colorchecker in corner. |
|
Relative color correction based on global analysis. |
Illumination correction#
Class for illumination correction. |
|
Class for performing patchwise illumination correction on images. |
|
Class for illumination correction. |
Colour balance#
Class for finding and applying a linear color balance. |
|
Class for finding and applying a diagional linear balance. |
|
Class for finding and applying a general affine balance. |
|
Affine colour balance whose scaling and translation adapt to the data. |
|
|
Apply the color balance to an image. |
|
Apply the color balance to an image. |
|
Apply the color balance to an image. |
Shape correction#
|
Polynomial curvature correction. |
|
Affine correction (translation, scaling, rotation). |
|
Class for applying generalized perspective transformation to images. |
|
Class for drift correction of images wrt. |
|
Patch-wise defined deformation correction defined through image registration. |
|
Translation correction based on user-input global translation. |
|
Rotation correction. |
|
Shape correction wrapping darsia.Resize to fit the BaseCorrection interface. |
Class for applying a transformation to an image as correction. |
Stand-alone transformations#
|
Affine map, restricted to translation, scaling, rotation, resulting in conservation of angles. |
Combination of perspective map, bulge and stretch for 2d images. |
|
|
Globally constant, patch-wise defined perspective transform. |
|
Estimator of translation to align images based on feature detection. |
Advanced#
Base class for finding and applying a color/white balance. |
|
Base class for geometrical transformations of images. |
|
|
Electro-optical transfer function (EOTF),the standard transfer function for sRGB, cf. |
|
Colour correction that locates the colour checker automatically. |
Load curvature correction config from a dictionary. |
|
Load curvature correction config from a toml file. |