Note
Go to the end to download the full example code.
Brightfield Microscopy: YeastNet#

import imageio.v3 as iio
import napari
from cellSAM import cellsam_pipeline
img = iio.imread("../sample_imgs/YeastNet.png")
mask = cellsam_pipeline(img, use_wsi=False)
nim = napari.view_image(img, name="Yeast Net");
nim.add_labels(mask, name="Cellsam segmentation");
if __name__ == "__main__":
napari.run()
Total running time of the script: (0 minutes 31.279 seconds)