Skip to content

Image Resolution wrongly read in TIFFWSIReader #452

@rogertrullo

Description

@rogertrullo
  • 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:

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 working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions