Open Slide Read Region

Stephen Yip stephen.fyip1 at gmail.com
Fri Jun 9 00:29:42 EDT 2017


Hi,

I am trying to crop a level_0 region out based on the level_2 region using
the osi.OpenSlide().read_region(). The resolution of level_0 is *eight*
times higher than level_2.

I used the read_region function for cropping.
osi.OpenSlide().read_region(x1,y1,level=0,dim1,dim2)

where (x1,y1) are the coordinate of the below green rectangle (see figure)
multiply by *eight*.  dim1 and dim2 are the height and width of the
rectangle multiply by *eight*.

The level_0 cropped region was shifted.

Does anyone know how to fix this?

Thank you very much!
Stephen

[image: Inline image 1]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20170609/b523bc82/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 679276 bytes
Desc: not available
URL: <http://lists.andrew.cmu.edu/pipermail/openslide-users/attachments/20170609/b523bc82/attachment-0001.png>


More information about the openslide-users mailing list