darsia.TypeCorrection#

class TypeCorrection(data_type=None)[source]#

Bases: BaseCorrection

Correction to convert image to a specified data type.

Methods

correct_array(img)

correct_metadata([metadata])

Correction routine on metadata level.

load(path)

Load the data type from a npz file.

save(path)

Save the class name and data type to a npz file.

load(path)[source]#

Load the data type from a npz file.

save(path)[source]#

Save the class name and data type to a npz file.

Parameters:
pathPath

Path to npz file.