Question about readRegion on MIRAX files

jcupitt at gmail.com jcupitt at gmail.com
Sat Jun 13 05:39:38 EDT 2020


On Fri, 12 Jun 2020 at 17:57, Sowrirajan Sowmithran
<ssowmith94 at gmail.com> wrote:
> On trying to apply the openslide_readRegion() function to get the desired part (random area) of the data, I end up getting a dark image instead (all 0s). Does this have something to do with the MIRAX format or the region being empty? If it is the later how do I determine which region has data and display it?

0 means transparent (ie. the slide background colour), so you are
probably reading outside the image area. I would check the openslide
bounds:

                "openslide.bounds-x",
                "openslide.bounds-y",
                "openslide.bounds-width",
                "openslide.bounds-height"

And make sure you are inside them. You could also open the image file
in a viewer and note the position of some real pixels.

John


More information about the openslide-users mailing list