wsidata.accessors.iter.TissueImage#
- class TissueImage(tissue_id, shape, image, downsample=1.0, format='yxc', mask_bg=None)#
Bases:
TissueContourThe data container return by
wsidata.iter.tissue_imagesThis container shares the same attributes as
TissueContour.- Attributes:
- image
np.ndarray The tissue image.
- downsamplefloat
The downsample factor of the image relative to level 0.
- mask
np.ndarray The tissue mask.
- masked_image
np.ndarray The masked image with the background masked.
- image
- property masked_image#
A masked image with the background masked will be returned if the mask_bg is not None.