read_unmixing_preset

read_unmixing_preset#

patato.read_unmixing_preset(json_path: str | dict, example_data: PAData | None, **kwargs)#

Load and parse the unmixing preset from the specified JSON file or dictionary.

Parameters:
  • json_path (Union[str, dict]) – The path to the JSON file or a dictionary containing the unmixing preset.

  • example_data (PAData or None) – An example dataset used to obtain settings such as wavelengths.

Returns:

unmixing_preset – The parsed unmixing preset as a pipeline element.

Return type:

SpatialProcessingAlgorithm