question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Image Resolution wrongly read in TIFFWSIReader

See original GitHub issue
  • 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:

https://github.com/TissueImageAnalytics/tiatoolbox/blob/b3ace851ac61cbeee1f382b33925d8a9b0a1be55/tiatoolbox/wsicore/wsireader.py#L3245-L3248

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]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
rogertrullocommented, Oct 23, 2022

@rogertrullo would you mind sending me that file which you have converted and are having issues with? @John-P I put it here: https://drive.google.com/file/d/1PYNzfCvwElRUiLTDlqV1iqfcgiIc-cH_/view?usp=sharing

1reaction
jessecanadacommented, Oct 21, 2022

@jessecanada Hi, I’d like to look into this for you. Are you able to provide a test image?

Hi @John-P

I sent a link to a test file to the tia email address found in setup.py

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is BufferedReader read() much slower than readLine()?
I found that read() is about 10x slower than readLine() . Is this expected? Or am I doing something wrong? Here's a benchmark...
Read more >
How to read file in Java - BufferedReader - Mkyong.com
I want to keep data in memory as equal to my custom buffer size =let's say 5*103kb where 103kb is the one line...
Read more >
Working of BufferedReader in Python | Examples - eduCBA
The class used to provide input buffering which means to fetch the data and store it in the queue of the memory so...
Read more >
Efficient way to download an image - CodeRanch
I have a java code which downloads images from network. ... BufferedReader reader = new BufferedReader( new InputStreamReader(url.openStream()));.
Read more >
Image Processing in Java - Read and Write - GeeksforGeeks
A BufferedImage can be read from several distinct image types (i.e., BMP, HEIC, etc.). Not all of these are backed by ImageIO itself, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found