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 a way to split the sections from a single image #184

Open
NicoKiaru opened this issue Dec 8, 2023 · 6 comments
Open

Add a way to split the sections from a single image #184

NicoKiaru opened this issue Dec 8, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@NicoKiaru
Copy link
Member

See forum post:

https://forum.image.sc/t/extracting-individual-slices-from-whole-slide-scans-ndpi-files/89639

@NicoKiaru NicoKiaru added the enhancement New feature or request label Dec 8, 2023
@imagesc-bot
Copy link

This issue has been mentioned on Image.sc Forum. There might be relevant details there:

https://forum.image.sc/t/extracting-individual-slices-from-whole-slide-scans-ndpi-files/89639/2

@NicoKiaru
Copy link
Member Author

This would also require changing the way qupath abba extension is handling import

@NicoKiaru
Copy link
Member Author

NicoKiaru commented Dec 8, 2023

@petebankhead is there a simple way to define an imageserver which is a cropped region of another image server ? that would support multiresolution ?

Edit: I found this: https://qupath.github.io/javadoc/docs/qupath/lib/images/servers/CroppedImageServer.html , but is there a way to make an ImageEntry out of an ImageServer ?

@petebankhead
Copy link

You'd create the cropped server using https://qupath.github.io/javadoc/docs/qupath/lib/images/servers/TransformedServerBuilder.html

From the server, you can get a ServerBuilder
https://qupath.github.io/javadoc/docs/qupath/lib/images/servers/ImageServer.html#getBuilder()

And then you can add that to the Project
https://qupath.github.io/javadoc/docs/qupath/lib/projects/Project.html#addImage(qupath.lib.images.servers.ImageServerBuilder.ServerBuilder)
which will return the entry that was created when doing so.

You can't add the ImageServer directly, since not all ImageServer implementations are JSON-serializable, and therefore can't produce a ServerBuilder. I think the cropped server can though.

@NicoKiaru
Copy link
Member Author

Great, I'll try that when I have a bit of time!

@NicoKiaru
Copy link
Member Author

Issue similar to #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants