darsia.GeneralizedPerspectiveCorrection#

class GeneralizedPerspectiveCorrection(coordinatesystem_src, coordinatesystem_dst, pts_src, pts_dst, fit_options={})[source]#

Bases: TransformationCorrection

Class for applying generalized perspective transformation to images.

Methods

correct_array(array_src)

Correction routine of array data.

correct_metadata([metadata])

Extract metadata from the config file.

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_metadata(metadata={})[source]#

Extract metadata from the config file.

Parameters:
metadatadict, optional

Metadata dictionary to be updated. Defaults to {}.

Returns:
dict

Metadata.