An instance raster mask (1500x1500px) of segmented nuclei of a HGSC tumor nest.
Note
Pairs with:
hgsc_cancer_nuclei()
hgsc_cancer_he()
hgsc_cancer_type_mask()
Examples:
>>> import matplotlib.pyplot as plt
>>> from histolytics.data import hgsc_cancer_type_mask
>>> from skimage.measure import label
>>> from skimage.color import label2rgb
>>> fig, ax = plt.subplots(figsize=(4, 4))
>>> im = hgsc_cancer_type_mask()
>>> ax.imshow(label2rgb(label(im), bg_label=0))
>>> ax.set_axis_off()

Source code in src/histolytics/data/fetch.py
| def hgsc_cancer_inst_mask():
"""An instance raster mask (1500x1500px) of segmented nuclei of a HGSC tumor nest.
Note:
Pairs with:
- `hgsc_cancer_nuclei()`
- `hgsc_cancer_he()`
- `hgsc_cancer_type_mask()`
Examples:
>>> import matplotlib.pyplot as plt
>>> from histolytics.data import hgsc_cancer_type_mask
>>> from skimage.measure import label
>>> from skimage.color import label2rgb
>>> fig, ax = plt.subplots(figsize=(4, 4))
>>> im = hgsc_cancer_type_mask()
>>> ax.imshow(label2rgb(label(im), bg_label=0))
>>> ax.set_axis_off()

"""
data = np.load(BASE_PATH / "hgsc_nest_inst_mask.npz")
return data["nuc_raster"]
|