lazyslide.tl.tissue_props

Contents

lazyslide.tl.tissue_props#

tissue_props(wsi, key='tissues')#

Compute a series of geometric features of tissue pieces

  • “area”

  • “area_filled”

  • “convex_area”

  • “solidity”

  • “convexity”

  • “axis_major_length”

  • “axis_minor_length”

  • “eccentricity”

  • “orientation”

  • “extent”

  • “perimeter”

  • “circularity”

Parameters:
wsiWSIData

The WSIData object.

keystr

The tissue key.

Returns:
None

Note

The geometry features will be added to the tissues | {tissue_key} table in the WSIData object. The columns will be named after the properties, e.g. area, solidity.

Examples

>>> import lazyslide as zs
>>> wsi = zs.datasets.sample()
>>> zs.pp.find_tissues(wsi)
>>> zs.tl.tissue_props(wsi)
>>> wsi['tissues']