-
Notifications
You must be signed in to change notification settings - Fork 25
Description
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 errorERROR 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
-
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.
-
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.