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

Loading MRXS files have rendering problem. #341

Open
NeelKanwal opened this issue Nov 2, 2021 · 9 comments
Open

Loading MRXS files have rendering problem. #341

NeelKanwal opened this issue Nov 2, 2021 · 9 comments
Labels
bug Something isn't working waiting-for-author

Comments

@NeelKanwal
Copy link

I have been trying to extract patches with binary masks. There is a weird problem, coming from loading a slide.

When loading images with .MRXS format, it gets trouble in resampling/scaled_image function to visualize. It works fine with .ndpi WSI and another relevant format.

Here is a picture of how it looks.

image

I found a similar issue open at openside-python (pixman) but it does not work still.

any suggestions on this.

@NeelKanwal NeelKanwal added the bug Something isn't working label Nov 2, 2021
@alessiamarcolini
Copy link
Collaborator

Hey @NeelKanwal, thank you for opening this issue. Could you reference here the openslide issue that you found? It could probably help us to get some context around the problem.

@NeelKanwal
Copy link
Author

Hi @alessiamarcolini

Here is the link.
openslide/openslide#278

The preview of my slides is also similar.

Neel

@ernestoarbitrio
Copy link
Member

Hi @NeelKanwal which version of pixman do you have? We have experienced a lot of these issues with version different from 0.40. I'm pretty sure pixman 0.38 is buggy. Please let us know :D

FYI: here https://histolab.readthedocs.io/en/latest/installation.html you can find the how to install pixman 0.40 according to your OS.

Ernesto

@NeelKanwal
Copy link
Author

Hi,

Thank you for your quick response.

I tried the solution it did not work for me. The command on PowerShell returns this.
image

@ernestoarbitrio
Copy link
Member

@NeelKanwal can you try with cygwin -> https://cygwin.com/?

@NeelKanwal
Copy link
Author

Hi,

I tried it in all possible ways, I think the problem is related to openslide. I tried with some WSI of other formats (.scn). The library reads all files as the same dimension and when I try to visualize it has an extra background. I have tried to load the same file using Pyvips/ OpenSlide and Histolab. All of them results in the same dimension size and extra background.

Any suggestions, please?

image

@alessiamarcolini
Copy link
Collaborator

Hi @NeelKanwal,

if you tried with pixman 0.40.0 installed and it still does not work, I believe the issue to be related to OpenSlide.
Histolab is using OpenSlide as backend, so I'd suggest opening an issue on their repository, as we cannot do much on our own.

@NeelKanwal
Copy link
Author

NeelKanwal commented May 27, 2022

I also think the OpenSlide is problematic because when I try to load using open slide it's again the same problem. I have tried to install open slide-python using conda and pip but the problem is still the same. Strangely, it works fine with the ndpi format but does not work well with mrxs and scn.

I am using openslide-pyton == 1.1.2

Any suggestions on that?
image

@NeelKanwal
Copy link
Author

I opened an issue on Openslide repository but they replied saying there may be problem with how histolab is using alpha channel to load the slides.

I am bit confused now with using all possible library versions and pixman, The problem is still there but with only two formats (MRXS, SCN)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting-for-author
Projects
None yet
Development

No branches or pull requests

3 participants