Open Slide Read Region

Benjamin Gilbert bgilbert at cs.cmu.edu
Fri Jun 9 02:36:05 EDT 2017


On Fri, Jun 09, 2017 at 12:29:42AM -0400, Stephen Yip wrote:
> 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*.

Hi Stephen,

(x1, y1) are always level 0 coordinates, regardless of the level you are
reading.

--Benjamin Gilbert


More information about the openslide-users mailing list