Skip to content

Best way to segment with multiple channels? #58

Description

@mat10d

Quick question--I am trying to use cellpose-napari, but am working with irregular cell types where including a DNA stain as the nuclear channel for cellpose is essential to get proper segmentations. What is the best way to prepare images for this in Napari? Currently, I have tried two things:

Merge to stack

  1. Loading a multichannel image through drag and drop. This creates three different "layers" in Napari
  2. If we right click all the layers available (3) and "Merge to stack", this creates a "multi-channel" image (meaning that you appear to be able to scroll through the different channels) with an arbitrary color
  3. Cellpose segmentation, setting the correct channel as nuclear, and the correct channel as my cytoplasmic background, then fails:

15:58:29 : ERROR : MainThread : tuple index out of range

Merge to RGB

  1. Loading a multichannel image through drag and drop. This creates three different "layers" in Napari
  2. Setting the three channels to one of red, green, blue (through colormap)
  3. If we right click all the layers available (3) and "Merge to RGB", this creates an apparently "single-channel" image with three different colors (as previously specified, these are red, green and blue)
  4. Cellpose segmentation, setting the correct channel as nuclear, and the correct channel as my cytoplasmic background, then works

This suggests that segmenting a stacked image is not something that is possible in cellpose-napari. Is this accurate?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions