-
-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Hi everyone,
I have a dataset consisting of large WSIs in Hamamatsu .ndpi many of which are >5GB in size.
I am able to initialise the slide using something like this:
test_img = Slide('/path/to/image.ndpi', processed_path='/path/to/output', use_largeimage=True)
And do basic tasks, such as:
from histolab.masks import TissueMask
all_tissue_mask = TissueMask()
test_img.locate_mask(all_tissue_mask)
This reads the file and generates a mask, outputting the result.
from histolab.tiler import GridTiler
gtiler = GridTiler(
tile_size=(224,224),
check_tissue=True,
tissue_percent=60,
pixel_overlap=0,
mpp=1.8
)
gtiler.extract(test_img, extraction_mask=all_tissue_mask, log_level='INFO')
This fails, with the error:
histolab.exceptions.HistolabException: OpenSlideError("Can't validate JPEG for directory 0: Expected marker at 4294972598, found none"). This slide may be corrupted or have a non-standard format not handled by the openslide and PIL libraries. Consider setting use_largeimage to True when instantiating this Slide.
Which is the error if you try and load a large image without use_largeimage=True set.
I would expect the uselarge_image flag to get passed into the tiler but this does not appear to be happening.
histolab v0.6
python 3.8
EDIT: typographical error
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working