spectral_unmixing.show_unmixed_channels_in_napariο
- spectral_unmixing.show_unmixed_channels_in_napari(output_path, *, source_channel=0, target_channel=1, layer_prefix='Unmixed', source_colormap='green', target_colormap='magenta')[source]ο
Show source and corrected target channel from an unmixed stack in a shared napari viewer.
- Parameters:
output_path (str or Path) β Path to an unmixed microscopy stack readable by OMIO.
source_channel (int, optional) β Source channel index to display.
target_channel (int, optional) β Corrected target channel index to display.
layer_prefix (str, optional) β Prefix used when naming napari layers.
source_colormap (str, optional) β Colormap assigned to the source-channel layer.
target_colormap (str, optional) β Colormap assigned to the target-channel layer.
- Returns:
napari.Viewer β Shared napari viewer containing the requested layers.
Repeated calls reuse the same napari viewer and update layers with matching names
instead of opening a new viewer.