Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Image Segmentation

Segment images

Functions

activecontour Segment image into foreground and background using active contour
imsegfmm Binary image segmentation using Fast Marching Method
imseggeodesic Segment image into two or three regions using geodesic distance-based color segmentation
gradientweight Calculate weights for image pixels based on image gradient
graydiffweight Calculate weights for image pixels based on grayscale intensity difference
grayconnected Select contiguous image region with similar gray values
graythresh Global image threshold using Otsu's method
multithresh Multilevel image thresholds using Otsu's method
otsuthresh Global histogram threshold using Otsu's method
adaptthresh Adaptive image threshold using local first-order statistics
boundarymask Find region boundaries of segmentation
superpixels 2-D superpixel oversegmentation of images
superpixels3 3-D superpixel oversegmentation of 3-D image
imoverlay Burn binary mask into 2-D image
label2idx Convert label matrix to cell array of linear indices

Apps

Color Thresholder Threshold a color image
Image Segmenter Segment an image by refining regions

Examples and How To

Image Segmentation Using the Color Thresholder App

This example shows how to segment an image to create a binary mask image using the Color Thresholder app.

Acquire Live Images in the Color Thresholder App

You can color threshold an image acquired from a webcam using the Color Thresholder app.

Image Segmentation Using the Image Segmenter App

This example shows how to use the Image Segmenter app to segment an image.

Texture Segmentation Using Gabor Filters

This example shows how to use texture segmentation to identify regions based on their texture.

Plot Land Classification with Color Features and Superpixels

This example shows how to perform land type classification based on color features using K-means clustering and superpixels.

Concepts

Image Segmentation

Image segmentation is the process of partitioning an image into parts or regions.

Was this topic helpful?