Closed milenovic closed 1 year ago
Hi @milenovic ,
can you tell the dimensions and pixel size of the image and the annotation? E g. use the menu Tools > Utilities > Layer Details for that.
Thanks!
Best, Robert
Thanks for the reply @haesleinhuepf, I don't see the Layer Details under tools: Am I missing something?
But here is the original image.zip It is 2396 x 2396 pixels, 16 bit. The import is enabled by napari-czifile2.
Best, Milan
Ah, I see I was missing a plugin for layer details. Here is the output:
looking deeper I tried to convert my .czi image to .tif in imageJ first and then import to napari. This way it worked! So there is some issue with using .czi Here are layer details with .tif image:
Thanks for debuggin the issue @milenovic !
I tried to convert my .czi image to .tif in imageJ first and then import to napari. This way it worked!
Awesome. It's a bit complicated though. That's why I implemented another way for doing this. The data has shape (1,1, height, width)
and the function np.squeeze
can convert it to data of shape (height, width)
. This should work nicely with APOC then. As convenience function I added squeeze
to napari-segment-blobs-and-things-with-membranes. After installing it you find the menu Tools > Transforms > Remove axes of length 1 (numpy.squeeze, nsbatwm)
. Give it a try and let me know if it works!
pip install napari-segment-blobs-and-things-with-membranes==0.3.6
Thanks, that is convenient and it works!
Awesome, thanks for the feedback!
Hello,
I am attempting to give a try to napari-APOC to segment nuclei from confocal microscopy image. I opened my image, created a new label layer and marked two classes (nuclei and background with paint brush tool. Then Tools -> Segmentation / labeling -> Object Segmentation (APOC). You can see my settings and labelled image here:
When I press Train after some time I get the following error on the conda console:
Am I doing something wrong?
For reference my Conda environment is: