Note
Go to the end to download the full example code.
Phase Microscopy of Mammalian Cells#

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