Skip to content

Unable to read in all image layers in .vdi file, only index 0 is read in #364

Open
@YuyanRuan

Description

@YuyanRuan

HESlide and Slidedata only read in the top one image in .vdi file
I use the BioformatsReader in cellprofiler_core.readers.bioformats_reader to read the ets file, which contains three images as shown in QuPath. However, only the image with index 0 is read in.

To Reproduce

from pathml.core import HESlide, SlideData, types
my_zeiss_zvi = HESlide("data/Image_06.vsi",
                         labels = {"target" : "HER-2"},
                         slide_type = types.HE)

It gives

SlideData(name='Image_06.vsi',
        slide_type=SlideType(stain=HE, platform=None, tma=None, rgb=True, volumetric=None, time_series=None),
        filepath='data/Image_06.vsi',
        backend='bioformats',
        image shape: (61115, 130754),
        number of levels: 23,
        0 tiles: [],
        0 masks: [],
        1 labels: ['target'],
        counts=None)

The width and height is concordant with the full-resolution image. Does it indicate that the full resolution image is loaded?
However, it seems that only the label image is loaded. When I run tile = my_zeiss_zvi.extract_region((0,0), (1000,1000), level=3).squeeze()
It gave
image

It seems that only the top one image is loaded.
Expected behavior
Can I specify the associated .ets file to process the full-resolution image in python?

Desktop (please complete the following information):

  • OS: [VERSION="20.04.5 LTS (Focal Fossa)", ID=ubuntu, ID_LIKE=debian]

Thank you very much!!!!! I have been struggled for quite a long time to read .ets and .vsi files in python. Looking forward to the help and advice!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions