/Image-Segmentation-Algorithms

This project implements three image segmentation algorithms - Region Growing, Watershed, and K-Means, to separate an object from its background, evaluated using the Jaccard Similarity Coefficient.

Primary LanguageMATLAB

Image Segmentation Algorithms - Region Growing, Watershed and K-Means

Author: Rishabh Srivastava

This work is focused on the implementation of 3 image segmentation algorithms - Region Growing, Watershed and K-Means algorithms.

The original image on which image segmentation is performed is shown below :


The image is to be segmented in 2 parts to separate the aeroplane from the background.

The Jaccard Similarity Coefficient is used as the metric to evaluate the performance of the algorithms.

1. Region Growing Algorithm :

This approach to segmentation examines neighboring pixels of initial seed points and determines whether the pixel neighbors should be added to the region. Choosing of an accurate seed point in Region Growing algorithm is crucial for the performance of the algorithm.

Output :

2. Watershed Algorithm :

A watershed is a transformation defined on a grayscale image. The name refers metaphorically to a geological watershed which separates adjacent drainage basins. The watershed transformation treats the image it operates upon like a topographic map, with the brightness of each point representing its height, and finds the lines that run along the tops of ridges.

Watershed algorithm outputs an image with many segments, which is further processed to obtain an image with only 2 segments to suit our requirement.

Output :

3. K-Means Algorithm :

K-Means clustering algorithm is an unsupervised algorithm and it is used to segment the interest area from the background. It divides the pixels into clusters according to its characteristics.

Output :

Notes :

Jaccard Similarity Coeffecient

Jaccard similarity coefficient is defined as the area of overlap between the predicted segmentation and the ground truth divided by the area of union between the predicted segmentation and the ground truth.

It is a numeric value in the range [0, 1]. A similarity of 1 means that the segmentations in the two images are a perfect match.