Bayer-Group / paquo

PAthological QUpath Obsession - QuPath and Python conversations
GNU General Public License v3.0
104 stars 16 forks source link

extract qupath project images in python via paquo #74

Closed mezwick closed 2 years ago

mezwick commented 2 years ago

Hi, From the point of accessing QuPath project images in python via paquo, is it possible to open image raw data as a numpy array? Or can i export images from my qp project?

For instance, how might i do this for the below image

from paquo.projects import QuPathProject

qp_path = "path/to/my/proj.qpproj"
qp = QuPathProject(qp_path)

image = qp.images[1]

Best, Merrick

ap-- commented 2 years ago

Hi Merrick,

If you want to work with the images as numpy arrays, it's best to open them outside of paquo via tools like openslide, or our tiffslide.

you can get the file uri of an image in a qupath project via image.uri

Let me know if that answers your question.

Cheers, Andreas :smiley:

mezwick commented 2 years ago

Thanks Andeas!