Base correction (darsia.corrections.basecorrection)#
Module containing a base implementation of an abstract correction.
Classes
Abstract base correction, providing template for tailored corrections. |
- class BaseCorrection[source]#
Bases:
ABCAbstract base correction, providing template for tailored corrections.
- abstractmethod correct_array(image)[source]#
Correction routine on array level, to be specified for tailored correction.
- Parameters:
image (array) – image array.
- Returns:
corrected image array.
- Return type:
array
- correct_metadata(metadata={})[source]#
Correction routine on metadata level.
- Parameters:
metadata (dict) – metadata dictionary.
- Returns:
corrected metadata dictionary.
- Return type:
dict