Reading Pathology Slides using the LoadImage functionality #3853
-
Hello everyone,
However, my slides are in svs format and I am using the cuCIM backend
I get the following error
I wonder why it is searching the TIFFFetchDirectory, On the other hand, if the use the
I wonder what I am doing wrong in the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @vikashg, thanks for sharing your question. In the approach where you are calling img_array, meta_data = reader.get_data(img_obj) |
Beta Was this translation helpful? Give feedback.
-
Hi @vikashg, from monai.transforms import LoadImaged, LoadImage
from monai.data.image_reader import WSIReader
image_path = "./BRACS_1244.svs"
transform = LoadImage(reader=WSIReader, backend='cucim', level=3)
image, _ = transform(image_path)
print(f"LoadImage : image shape = {image.shape}")
transformD = LoadImaged(keys=["image"], reader=WSIReader, backend='cucim', level=3)
image = transformD({"image": image_path})["image"]
print(f"LoadImageD: image shape = {image.shape}") |
Beta Was this translation helpful? Give feedback.
Hi @vikashg,
I cannot reproduce the issue using the image that you provided me with. Could you please check again using the following code?