Open gdurif opened 3 months ago
hi @gdurif indeed unfortunately atm we don't support methods to operate on 3d image data. We are currently working towards porting some these functionalities to spatialdata. Will keep this open for reference
@giovp thanks for your reply.
According to the documentation, it should be possible to use library_id
input argument to choose which slice (in the Z
dim) of the image to use ?
This point was discussed in #321 and #329 so I guess it should work with the current version of squidpy ?
Description
I try to build an
ImageContainer
using a "pyramid tiff" file storing an H&E stain image, i.e. an image with aZ
dimension > 1.Printing the
.data
attribute of my container, I see that theImageContainer
seems to be correctly built around my image (c.f. below). However, when I try to plot the image or to run a segmentation on it, I get an error linked to theZ
dimension being larger than 1 (c.f. below).Minimal reproducible example
Here is an example using a tiff H&E image originating from the MoNuSeg data challenge dataset (available under CC BY-NC-SA 4.0 license).
Part of this dataset can be downloaded using the following link (github does not allow to attach tiff file). It would then just require to unzip to get the images.
Note: some images are not "pyramid tiff" and have just one
Z
dimension, not causing any trouble.Trying to view the image
TCGA-F9-A8NY-01Z-00-DX1.tif
withsquidpy.im.ImageContainer.show()
or to segment it usingsquidpy.im.segment()
return the same error.Traceback
image.show(layer="image", library_id = '0')
error:sq.im.segment(img=image, layer="image", library_id='0', method="watershed", thresh=90, geq=False)
error:Version
'1.5.0'
Thanks in advance, Best