Open Slide Read Region

Benjamin Gilbert bgilbert at cs.cmu.edu
Fri Jun 9 12:33:28 EDT 2017


On Fri, Jun 09, 2017 at 10:02:23AM -0400, Stephen Yip wrote:
> The roi is defined on level 2 and read_region read the level 0 coordinate. 
> I thus want to map that to level 0 coordinate to get the corresponding
> "cropped patch".
> 
> What is the corresponding level 0 coordinate and size of the roi that is
> defined on level 2?

If openslide_get_level_downsample(osr, l) == d,
openslide_read_region(osr, x, y, l, w, h) maps to
openslide_read_region(osr, x, y, 0, d * w, d * h).

--Benjamin Gilbert


More information about the openslide-users mailing list