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

Different pixel value when opening same slide on Linux and Windows #183

Open
loic-lb opened this issue Sep 15, 2022 · 2 comments
Open

Different pixel value when opening same slide on Linux and Windows #183

loic-lb opened this issue Sep 15, 2022 · 2 comments

Comments

@loic-lb
Copy link

loic-lb commented Sep 15, 2022

Context

Issue type (bug report or feature request): Different pixel value when opening same slide on Linux and Windows
Operating system (e.g. Fedora 24, Mac OS 10.11, Windows 10): Ubuntu 20.04.4 LTS, Windows 10
Platform (e.g. 64-bit x86, 32-bit ARM):
OpenSlide Python version (openslide.__version__): 1.2.0 (on both OS)
OpenSlide version (openslide.__library_version__): 3.4.1 (on both OS)
Slide format (e.g. SVS, NDPI, MRXS): NDPI

Details

Dear all,

When trying to read a slide from Warwick HER2 dataset in a single array at level 5, I get different values depending I am using openslide on Windows or Linux. Both versions of openslide python are the same as the openslide library version. The offset value is relatively small since it seems to differ by only one unit (cf tables on the left of the screenshots I joined). However, this difference is enough to impact my processing afterward. You can also notice on the screenshots I joined that, for instance, you get something significantly different when summing the value of pixels.

Thank you for your help,

Linux capture:
capture_openslide_issue_linux

Windows capture:
capture_openslide_issue_windows

@bgilbert
Copy link
Member

OpenSlide shouldn't be doing anything different on different platforms. It's possible that there's a behavior difference in the underlying image libraries. I'd recommend comparing the versions of the JPEG library (either libjpeg or libjpeg-turbo), pixman, cairo, and possibly Pillow. You might try reducing divergence by comparing the latest OpenSlide Windows build with Ubuntu 22.04 or Fedora 36.

@464hee

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants