Skip to content
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

Read TIFF mpp values #72

Merged
merged 2 commits into from
May 31, 2022
Merged

Read TIFF mpp values #72

merged 2 commits into from
May 31, 2022

Conversation

jonasteuwen
Copy link
Contributor

@jonasteuwen jonasteuwen commented May 31, 2022

This commit allows to read the mpp values of tiff files, as OpenSlide doesn't directly do this. This is e.g. required in the TIGEr dataset.

from dlup import SlideImage

img = SlideImage.from_file_path("TIGER/wsirois/wsi-level-annotations/images/100B.tif")
print(img.mpp)
0.45669399219053275

@jonasteuwen jonasteuwen merged commit 15cb1da into main May 31, 2022
@jonasteuwen jonasteuwen deleted the tiff-mpp branch May 31, 2022 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants