Skip to content

[FEATURE] add channel_axis and z_axis to widget #48

@manerotoni

Description

@manerotoni

Hello,
I was wondering how you are supposed to load a multi-channel image in the plugin.

Problem

  • If I load a multipage tif with two channels and python dimensions (C, Y, X), the plugin
    gives the error ERROR tuple index out of range
  • If I set the stitch threshold > 0 or 3D on the image is processed as Z-stack, which is wrong.

I conclude from this that the plugin always think that an image with more than 2-dimension is a Z-stack.

What I tried

  1. Napari expects dimensions (T, Z, C, Y, X) and I tried to add more dimensions. This did not help. In fact to display the image as multi-channel you need to split stack.

  2. I converted in Fiji the image to a png/RGB. The image gets dimension (Y,X, C) with 3 channels. Napari displays the image as multi-channel without having to split stack. Cellpose can process the image. This solution is not good as converting yet in another format is not convenient and is something you try to avoid in image processing due to loss of information. If you try to make your image RGB in napari/python it is quite of a mess. You have to add an additional channel , ....

Possible solutions
Specify the channels to use directly without going through the image layer. The plugin should understand different dimensions. In the cellpose GUI this works quite well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions