wsidata.SlideProperties#

class SlideProperties(shape, n_level, level_shape, level_downsample, mpp=None, magnification=None, bounds=None, raw=None)#

Bases: object

The properties of the slide

Attributes:
shape(height, width)

The shape of the slide

n_levelint

The number of pyramids levels

level_shapearray of (height, width)

The shape of each pyramid level

level_downsamplearray fo float

The downsample factor of each pyramid level

mppfloat

The physical size of each pixel in microns

magnificationfloat

The magnification of the slide

bounds(x, y, width, height)

The bounds of the slide, in the format [x, y, width, height] This is the region of the slide that contains tissue

rawdict

The raw metadata in serialized json format

classmethod from_mapping(metadata)#

Create SlideProperties from a mapping

to_dict()#

Convert the properties to a dictionary

to_json()#

Convert the properties to a json string