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.