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

add new wsi .format? #121

Open
lingxitong opened this issue May 1, 2024 · 3 comments
Open

add new wsi .format? #121

lingxitong opened this issue May 1, 2024 · 3 comments
Labels
question Further information is requested

Comments

@lingxitong
Copy link

How Can I add a new wsi format ‘sdpc’?

@cdgatenbee cdgatenbee added the question Further information is requested label May 1, 2024
@cdgatenbee
Copy link
Collaborator

Hi @lingxitong,
It is possible to create custom slide readers to support formats valis cannot currently read. To do this, you would need to sublcass the slide_io.SlideReader. It needs to be able to convert the slide to numpy arrays (slide2image), pyvips.Image objects (slide2vips), and extract metadata (See the Metadata) class for the information that is usually collected). It looks like the sdpc-for-python does much of this already, so you would essentially just need to make a wrapper for it. Unfortunately, I don't have any sdpc images, so wouldn't be able to work on this myself. Happy to help with any questions you may have though!

Best,
-Chandler

@lingxitong
Copy link
Author

thanks,Can I pull request to your project.

@cdgatenbee
Copy link
Collaborator

Hi @lingxitong, yes, pull requests are more than welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants