What would be the best way to resize? #20
-
My original WSI is of size Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @sarthakpati, Seems I haven't gotten a notification that a new discussion opened, so here's my answer with a slight delay: So I assume the goal of all of this is making sure that the specific file type is actually handled throughout the tests correctly. And that can be a bit complicated, because dependent on the pyramidal format you want to run through your test pipeline it's possible that there's no tool that supports writing that format. If it's just about resizing and storing in some format you could use Cheers, |
Beta Was this translation helpful? Give feedback.
Hi @sarthakpati,
Seems I haven't gotten a notification that a new discussion opened, so here's my answer with a slight delay:
So I assume the goal of all of this is making sure that the specific file type is actually handled throughout the tests correctly. And that can be a bit complicated, because dependent on the pyramidal format you want to run through your test pipeline it's possible that there's no tool that supports writing that format.
If it's just about resizing and storing in some format you could use
pyvips
or even just plainopencv
. You can also usetifffile.imwrite
to write tiffs in various flavors. It's unlikely that writing images is going to be supported directly via tiffsl…