darsia.TransformationCorrection#

class TransformationCorrection(coordinatesystem_src, coordinatesystem_dst, transformation)[source]#

Bases: BaseCorrection

Class for applying a transformation to an image as correction.

Methods

correct_array(array_src)

Correction routine of array data.

correct_metadata([metadata])

Correction routine on metadata level.

load(path)

save(path)

Attributes

coordinatesystem_src

Coordinate system of source image.

coordinatesystem_dst

Coordinate system of destination image.

transformation

Transformation to apply as correction.

correct_array(array_src)[source]#

Correction routine of array data.

Parameters:
array_srcnp.ndarray

Array corresponding to some source image.

Returns:
np.ndarray

Array corresponding to some destination image.

coordinatesystem_dst#

Coordinate system of destination image.

coordinatesystem_src#

Coordinate system of source image.

transformation#

Transformation to apply as correction.