---
title: "Segmentation Analysis"
language: "en"
type: "Guide"
summary: "The Wolfram Language includes a variety of low- and high-level image segmentation techniques from clustering, watershed and region growing to semantic and object segmentation using neural networks. Segmentation functions can be used together with a rich set of functions for pre- and post-processing for more robust results as well as analysis functions performed on the result of the segmentation."
sections: 
  - 
    title: "Foreground-Background Separation"
    link: "null"
  - 
    title: "Binary Segmentation"
    link: "null"
  - 
    title: "Multi-Component Segmentation"
    link: "null"
  - 
    title: "Object Segmentation"
    link: "null"
  - 
    title: "Semantic Segmentation"
    link: "null"
  - 
    title: "Component Analysis"
    link: "null"
  - 
    title: "Image Preparation"
    link: "null"
keywords: 
- image processing
- image segmentation
- segmentation
- classification
- clustering
- component
- watershed transform
- connected components
- labeling
- component analysis
- segment analysis
- cluster analysis
- blob analysis
- Vincent
- Soille
- Meyer
- Beucher
- kmeans
- threshold
- region-growing
- active contour
canonical_url: "https://reference.wolfram.com/language/guide/SegmentationAnalysis.html"
source: "Wolfram Language Documentation"
related_guides: 
  - 
    title: "Image Processing & Analysis"
    link: "https://reference.wolfram.com/language/guide/ImageProcessing.en.md"
  - 
    title: "Image Filtering & Neighborhood Processing"
    link: "https://reference.wolfram.com/language/guide/ImageFilteringAndNeighborhoodProcessing.en.md"
  - 
    title: "Morphological Image Processing"
    link: "https://reference.wolfram.com/language/guide/MathematicalMorphology.en.md"
  - 
    title: "Cluster Analysis"
    link: "https://reference.wolfram.com/language/guide/ClusterAnalysis.en.md"
related_functions: 
  - 
    title: "ArrayComponents"
    link: "https://reference.wolfram.com/language/ref/ArrayComponents.en.md"
  - 
    title: "Binarize"
    link: "https://reference.wolfram.com/language/ref/Binarize.en.md"
  - 
    title: "ChanVeseBinarize"
    link: "https://reference.wolfram.com/language/ref/ChanVeseBinarize.en.md"
  - 
    title: "ClusteringComponents"
    link: "https://reference.wolfram.com/language/ref/ClusteringComponents.en.md"
  - 
    title: "Colorize"
    link: "https://reference.wolfram.com/language/ref/Colorize.en.md"
  - 
    title: "ColorQuantize"
    link: "https://reference.wolfram.com/language/ref/ColorQuantize.en.md"
  - 
    title: "ComponentMeasurements"
    link: "https://reference.wolfram.com/language/ref/ComponentMeasurements.en.md"
  - 
    title: "DeleteBorderComponents"
    link: "https://reference.wolfram.com/language/ref/DeleteBorderComponents.en.md"
  - 
    title: "DeleteSmallComponents"
    link: "https://reference.wolfram.com/language/ref/DeleteSmallComponents.en.md"
  - 
    title: "FillingTransform"
    link: "https://reference.wolfram.com/language/ref/FillingTransform.en.md"
  - 
    title: "FindThreshold"
    link: "https://reference.wolfram.com/language/ref/FindThreshold.en.md"
  - 
    title: "GradientFilter"
    link: "https://reference.wolfram.com/language/ref/GradientFilter.en.md"
  - 
    title: "GrowCutComponents"
    link: "https://reference.wolfram.com/language/ref/GrowCutComponents.en.md"
  - 
    title: "HighlightImage"
    link: "https://reference.wolfram.com/language/ref/HighlightImage.en.md"
  - 
    title: "ImageCases"
    link: "https://reference.wolfram.com/language/ref/ImageCases.en.md"
  - 
    title: "ImageClip"
    link: "https://reference.wolfram.com/language/ref/ImageClip.en.md"
  - 
    title: "ImageContents"
    link: "https://reference.wolfram.com/language/ref/ImageContents.en.md"
  - 
    title: "ImageForestingComponents"
    link: "https://reference.wolfram.com/language/ref/ImageForestingComponents.en.md"
  - 
    title: "ImageSegmentationComponents"
    link: "https://reference.wolfram.com/language/ref/ImageSegmentationComponents.en.md"
  - 
    title: "ImageSegmentationFilter"
    link: "https://reference.wolfram.com/language/ref/ImageSegmentationFilter.en.md"
  - 
    title: "LocalAdaptiveBinarize"
    link: "https://reference.wolfram.com/language/ref/LocalAdaptiveBinarize.en.md"
  - 
    title: "MorphologicalBinarize"
    link: "https://reference.wolfram.com/language/ref/MorphologicalBinarize.en.md"
  - 
    title: "MorphologicalComponents"
    link: "https://reference.wolfram.com/language/ref/MorphologicalComponents.en.md"
  - 
    title: "RangeFilter"
    link: "https://reference.wolfram.com/language/ref/RangeFilter.en.md"
  - 
    title: "RegionBinarize"
    link: "https://reference.wolfram.com/language/ref/RegionBinarize.en.md"
  - 
    title: "RemoveBackground"
    link: "https://reference.wolfram.com/language/ref/RemoveBackground.en.md"
  - 
    title: "SelectComponents"
    link: "https://reference.wolfram.com/language/ref/SelectComponents.en.md"
  - 
    title: "Threshold"
    link: "https://reference.wolfram.com/language/ref/Threshold.en.md"
  - 
    title: "WatershedComponents"
    link: "https://reference.wolfram.com/language/ref/WatershedComponents.en.md"
---
# Segmentation Analysis

The Wolfram Language includes a variety of low- and high-level image segmentation techniques from clustering, watershed and region growing to semantic and object segmentation using neural networks. Segmentation functions can be used together with a rich set of functions for pre- and post-processing for more robust results as well as analysis functions performed on the result of the segmentation.

---

### Foreground-Background Separation

[`RemoveBackground`](https://reference.wolfram.com/language/ref/RemoveBackground.en.md) — separate the background from the foreground of the image

[`ImageSegmentationFilter`](https://reference.wolfram.com/language/ref/ImageSegmentationFilter.en.md) — segment an object or region in an image

### Binary Segmentation

[`Binarize`](https://reference.wolfram.com/language/ref/Binarize.en.md) — segmentation by thresholding pixel intensities

* [`MorphologicalBinarize`](https://reference.wolfram.com/language/ref/MorphologicalBinarize.en.md)
* [`LocalAdaptiveBinarize`](https://reference.wolfram.com/language/ref/LocalAdaptiveBinarize.en.md)
* [`RegionBinarize`](https://reference.wolfram.com/language/ref/RegionBinarize.en.md)
* [`ChanVeseBinarize`](https://reference.wolfram.com/language/ref/ChanVeseBinarize.en.md)

### Multi-Component Segmentation

[`ImageSegmentationComponents`](https://reference.wolfram.com/language/ref/ImageSegmentationComponents.en.md) — high-level segmentation using neural networks

[`ClusteringComponents`](https://reference.wolfram.com/language/ref/ClusteringComponents.en.md) — segmentation based on cluster analysis

[`WatershedComponents`](https://reference.wolfram.com/language/ref/WatershedComponents.en.md) — segmentation based on watershed methods

[`GrowCutComponents`](https://reference.wolfram.com/language/ref/GrowCutComponents.en.md) — segmentation using cellular automata evolution

[`MorphologicalComponents`](https://reference.wolfram.com/language/ref/MorphologicalComponents.en.md) — find morphologically connected components

[`ImageForestingComponents`](https://reference.wolfram.com/language/ref/ImageForestingComponents.en.md) — segmentation based on pixel graph connectivity

[`ArrayComponents`](https://reference.wolfram.com/language/ref/ArrayComponents.en.md) — find identical components

### Object Segmentation

[`ImageCases`](https://reference.wolfram.com/language/ref/ImageCases.en.md), [`ImageContents`](https://reference.wolfram.com/language/ref/ImageContents.en.md) — detect, recognize and segment objects in an image

### Semantic Segmentation

Neural networks for semantic segmentation.

- ["YOLO V8 Segment Trained on MS-COCO Data"](https://resources.wolframcloud.com/NeuralNetRepository/resources/YOLO-V8-Segment-Trained-on-MS-COCO-Data/)
- ["Ademxapp Model A1 Trained on Cityscapes Data"](https://resources.wolframcloud.com/NeuralNetRepository/resources/Ademxapp-Model-A1-Trained-on-Cityscapes-Data/)
- ["Dilated ResNet-22 Trained on Cityscapes Data"](https://resources.wolframcloud.com/NeuralNetRepository/resources/Dilated-ResNet-22-Trained-on-Cityscapes-Data/)
- […](https://resources.wolframcloud.com/NeuralNetRepository/tasktype/Semantic-Segmentation/)

### Component Analysis

[`ComponentMeasurements`](https://reference.wolfram.com/language/ref/ComponentMeasurements.en.md) — shape and color analysis

* [`SelectComponents`](https://reference.wolfram.com/language/ref/SelectComponents.en.md)
* [`DeleteSmallComponents`](https://reference.wolfram.com/language/ref/DeleteSmallComponents.en.md)
* [`DeleteBorderComponents`](https://reference.wolfram.com/language/ref/DeleteBorderComponents.en.md)

[`Colorize`](https://reference.wolfram.com/language/ref/Colorize.en.md) — color every segment differently

[`HighlightImage`](https://reference.wolfram.com/language/ref/HighlightImage.en.md) — highlight region of interest

### Image Preparation

[`ColorQuantize`](https://reference.wolfram.com/language/ref/ColorQuantize.en.md) — reduce the number of distinct colors in an image

[`FillingTransform`](https://reference.wolfram.com/language/ref/FillingTransform.en.md) — reduce noise to create smooth regions in an image

[`GradientFilter`](https://reference.wolfram.com/language/ref/GradientFilter.en.md), [`RangeFilter`](https://reference.wolfram.com/language/ref/RangeFilter.en.md) — create an edge map from an image

* [`FindThreshold`](https://reference.wolfram.com/language/ref/FindThreshold.en.md)
* [`Threshold`](https://reference.wolfram.com/language/ref/Threshold.en.md)
* [`ImageClip`](https://reference.wolfram.com/language/ref/ImageClip.en.md)

## Related Guides

* [Image Processing & Analysis](https://reference.wolfram.com/language/guide/ImageProcessing.en.md)
* [Image Filtering & Neighborhood Processing](https://reference.wolfram.com/language/guide/ImageFilteringAndNeighborhoodProcessing.en.md)
* [Morphological Image Processing](https://reference.wolfram.com/language/guide/MathematicalMorphology.en.md)
* [Cluster Analysis](https://reference.wolfram.com/language/guide/ClusterAnalysis.en.md)

## Related Links

* [[image]  Wolfram Core Areas: Integrated Image Computation](https://www.wolfram.com/language/core-areas/image/)