cellpose
Description
Use the cellpose
object and its object functions to segment cells
in microscopy images using the Cellpose Library.
A cellpose
object specifies the model to use as well as options for
segmentation. You can specify a pretrained model from the Cellpose Library or a custom trained model. To
perform segmentation, pass the cellpose
object to the segmentCells2D
or segmentCells3D
object function for 2-D or 3-D images, respectively. Train a custom model by using the
trainCellpose
function. Download all pretrained models from the library using the downloadCellposeModels
function.
Note
This functionality requires Deep Learning Toolbox™, Computer Vision Toolbox™, and the Medical Imaging Toolbox™ Interface for Cellpose Library. You can install the Medical Imaging Toolbox Interface for Cellpose Library from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Creation
Description
creates a
cp
= cellposecellpose
object with default property values. The first time you call
this syntax, the function downloads the cyto2
network from the Cellpose
Library, which requires an internet connection.
sets the cp
= cellpose(Name=Value
)Model
and ModelFolder
properties, or specifies additional arguments using
one or more name-value arguments. For example,
ExecutionEnvironment="gpu"
specifies to use a GPU for
segmentation.
Input Arguments
Properties
Object Functions
segmentCells2D | Segment 2-D image using Cellpose |
segmentCells3D | Segment 3-D image volume using Cellpose |
Examples
References
[1] Stringer, Carsen, Tim Wang, Michalis Michaelos, and Marius Pachitariu. “Cellpose: A Generalist Algorithm for Cellular Segmentation.” Nature Methods 18, no. 1 (January 2021): 100–106. https://doi.org/10.1038/s41592-020-01018-x.
[2] Pachitariu, Marius, and Carsen Stringer. “Cellpose 2.0: How to Train Your Own Model.” Nature Methods 19, no. 12 (December 2022): 1634–41. https://doi.org/10.1038/s41592-022-01663-4.
Version History
Introduced in R2023b