✨ AI Binarization and Segmentation
PhenoCapture AI’s AI Binarization and Segmentation feature leverages the advanced StarDist deep learning architecture to automatically detect, outline, and separate complex biological cells, nuclei, and distinct structures within your images. By converting standard microscopy or structural photos into precisely separated binary masks (with 1-pixel separation boundaries between touching instances), this tool takes the guesswork and manual labor out of object isolation.
Whether you are counting tightly packed cell nuclei or isolating round and oval-shaped biological specimens, PhenoCapture AI provides an efficient AI-powered solution with just a single click.
[Before and After Applying AI Binarization and Segmentation using StarDist]

[Region Coloring is applied to the image after AI Binarization and Segmentation]

💡 Key Features
- Advanced AI Segmentation (StarDist): Uses a specialized neural network architecture to detect and separate star-convex objects, making it particularly suitable for cell nuclei, colonies, circular particles, and other round or oval-shaped structures.
- Automatic Boundary Separation: Unlike standard thresholding that merges touching cells into a single blob, StarDist performs instance-level segmentation and automatically generates clean 1-pixel separation lines between adjacent objects.
- Smart Regional Masking (ROI): You are in full control! If you only need to segment a specific cluster of objects, simply draw a selection boundary around them. The AI will strictly focus its analysis on your highlighted area and seamlessly blend the newly segmented results back into your original image without affecting the surrounding pixels.
- Smooth Background Operation & Batch Support: AI calculations are handled smoothly on background threads with a real-time progress bar. The model is also available in Batch Processing and Scripting (
Action.AIBinarizationSegmentationStarDist()). - Seamless Undo Integration: Connected directly to PhenoCapture AI’s built-in undo engine so you can experiment freely and revert to your original image at any time.
🛠️ How to Use AI Segmentation
Step 1: Prepare Your Workspace and Mask (Optional)
Load your image into the main workspace. If you only want to segment a specific section, use the advanced selection tools to draw a boundary around that area. If no region is selected, the AI will analyze and segment the entire image.
Step 2: Run AI Binarization and Segmentation
Navigate to the menu and select AI Binarization and Segmentation (StarDist) to start the segmentation process.
Step 3: Let the AI Work & Analyze!
A progress window will appear, guiding you through the AI’s execution stages. Once complete, your newly binarized and instance-separated mask will instantly appear in the workspace—ready for Region Coloring, particle counting, or morphological analysis!
Disclaimer: StarDist is an independent open-source research project. Its integration into PhenoCapture AI is provided with appropriate academic attribution and does not imply endorsement by the original authors or their institutions.