darsia.ColorPathInterpolation#
- class ColorPathInterpolation(color_path, color_mode, values=None, ignore_spectrum=None)[source]#
Bases:
ColorPathFunctionInterpolate concentrations along a colour path from labelled reference values.
Methods
calibrate()from_dict(data)Create a ColorPathInterpolation from a dictionary.
load(path)Load the ColorPathInterpolation from a file.
save(path)Save the ColorPathInterpolation to a file.
to_dict()Convert the ColorPathInterpolation to a dictionary representation.
update_model_parameters(parameters[, dofs])Update the interpolation values of the color path.
Attributes
Spectrum to ignore during parametrization.
color_pathUnderlying color path.
color_modeColor mode used for parametrization.
- classmethod from_dict(data)[source]#
Create a ColorPathInterpolation from a dictionary.
- Parameters:
- data
dict Dictionary representation of the ColorPathInterpolation.
- data
- Returns:
ColorPathInterpolationThe created ColorPathInterpolation instance.
- classmethod load(path)[source]#
Load the ColorPathInterpolation from a file.
- Parameters:
- path
Path The path to the file from which the ColorPathInterpolation should be loaded.
- path
- Returns:
ColorPathInterpolationLoaded ColorPathInterpolation instance.
- save(path)[source]#
Save the ColorPathInterpolation to a file.
- Parameters:
- path
Path The path to the file where the ColorPathInterpolation should be saved.
- path
- to_dict()[source]#
Convert the ColorPathInterpolation to a dictionary representation.
- Returns:
dictDictionary representation of the ColorPathInterpolation.
- update_model_parameters(parameters, dofs=None)[source]#
Update the interpolation values of the color path.
- ignore_spectrum#
Spectrum to ignore during parametrization.