-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Axes swapped when using Image backend TIFFfile #187
Comments
Hi! Can you check the behavior as well using openslide as backend? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Tiles are sampled outside WSI bounds, causing an error. 'Requested region outside level boundaries'. This is due to axes being in the opposite order when reading in the mask using the Imagebackend TIFFfile as opposed to using ImageBackend PYVIPS.
So as an example:
self._wsi.slide_bounds (in _image.py)
Pyvips backend:
((0, 0), (3758, 2402))
Tifffile backend:
((0, 0), (2402, 3758))
To Reproduce
The issue occurs when creating a tiledroidataset from a wsi and a corresponding mask, where the mask is read in with the ImageBackened TIFFfile.
Expected behavior
The mask boundaries should be the same no matter whether it is read using ImageBackend TIFFfile or PYVIPS.
Environment
dlup version:
How installed:
Python version:
Operating System:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: