FUZZYC_CVIP

fuzzyc_cvip() - This function performs fuzzy c-means clustering based image segmentation.

Contents

SYNTAX

OutImage = fuzzyc_cvip(inImage, N, parameters)

Input Parameters include :

Output Parameter include :

DESCRIPTION

The function performs the image segmenation using fuzzy c-means method. Fuzzy c-means is a clustering technique that partitions the image data into a number of clusters such that each datapoint may have different degree of association with each cluster. A datapoint belongs to a cluster that has the highest degree.For each cluster, the center is computed,and the original datapoints are mapped to these centers vectors.

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

% Read Image

  I = imread('raphael.jpg');       %original image

% Call function

  O1 = fuzzyc_cvip(I);             % default N and FCM parameters
  N = 4;                           % Number of clusters
  O2 = fuzzyc_cvip(I,N);           % user specified N and default fcm parameters
  O3 = fuzzyc_cvip(I,N,[2.5 15 0.01]);  % user specified N and FCM parameters


% Display Input Image

  figure;imshow(I);title('Input Image 1');

% Display Output Image

  figure;imshow(O1,[]);title('Output Image - Default N and FCM parameters');
  figure;imshow(O2,[]);title('Output Image - User Specified N and default FCM');
  figure;imshow(O3,[]);title('Output Image - User Specified N and FCM');

CREDITS

Author: Norsang Lama, March 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website