-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
- TIA Toolbox version: 1.2.1
- Python version: 3.8
- Operating System:
Description
According to the Tiff description, the tags XResolution and YResolution are of type rational. Meaning that we should compute the fraction. In the code:
tiatoolbox/tiatoolbox/wsicore/wsireader.py
Lines 3245 to 3248 in b3ace85
| mpp = [ | |
| utils.misc.ppu2mpp(res_x.value[0], res_units.value), | |
| utils.misc.ppu2mpp(res_y.value[0], res_units.value), | |
| ] |
we are only passing the first element. Instead we should pass res_x.value[0]/res_x.value[1] and res_y.value[0]/res_y.value[0]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working