Code covered by the BSD License  

Highlights from
color Image Segmentation

image thumbnail

color Image Segmentation

by

 

08 Sep 2009 (Updated )

Segments a color image into regions.

SampleUsage.m
%Author : Athi Narayanan S
%M.E, Embedded Systems,
%K.S.R College of Engineering
%Erode, Tamil Nadu, India.
%http://sites.google.com/site/athisnarayanan/
%s_athi1983@yahoo.co.in

%Clear Memory & Command Window
clc;
clear all;
close all;


%Parameters for the Segmentation
nBins=5;
winSize=7;
nClass=6;

%Read Input Image
inImg = imread('Input.jpg');
imshow(inImg);title('Input Image');

%Segmentation
outImg = colImgSeg(inImg, nBins, winSize, nClass);

%Displaying Output
figure;imshow(outImg);title('Segmentation Maps');
colormap('default');

Contact us