View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
EM image segmentation

4.8 | 16 ratings Rate this file 62 Downloads (last 30 days) File Size: 2.05 KB File ID: #10956 Version: 1.0
image thumbnail

EM image segmentation



03 May 2006 (Updated )

Apllication of EM algorithm to segment a grey scale image on diferent classes

| Watch this File

File Information

This program gets an image and the desidered number of partitions and fits the image histogram using a mixture of gaussian distributions and provides a clasified image

MATLAB release MATLAB 6.5.1 (R13SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (20)
23 Mar 2016 JINHO HWANG

Good job!! I am starting my project on the same subject. But I can't understand your code exactly...could you please let me know what exactly explanation for the source code.
And I want to know means (red color line, blue color line, green color line, y-axis and x-axis)
MY e-mail address is

02 Jul 2015 hui cheng

06 May 2015 Mei Dong

very good job!

12 Nov 2014 Jobaer

Jobaer (view profile)

please, sir , send me a source code on image segmentation. I want to segement weeds from soil.My email address is .

18 Jan 2014 HuangJunFeng HuangJunFeng

16 Dec 2013 widdy

widdy (view profile)

19 Feb 2013 Tong Chu

01 Jan 2013 manas nag

manas nag (view profile)

after executing this it is declaring that k is undefined

04 Dec 2012 Jason Rebello

Some people want to know how to view the segmented image. For example suppose you have two classes ie k=2; us the following code to view it
[row col] = size(ima);
final_img = zeros(row,col);
for i=1:row
for j=1:col
if mask(i,j)==1
This is a naive way of viewing it .. you may have to change somethings if k>2. Anywayz hope it helps. The mask basically stores the segmented image.

16 Nov 2011 surya

surya (view profile)

great job.i am using the same algorithm in my project for x-ray images.can u please tell how to view the segmented image

Comment only
18 Feb 2010 prashanth

Sir, I am starting my project on the same subject. i was unable to find the algorithm psuedocode for em algorithm. kindly send me one at Also can u just tell me the explanation for the source code..

Comment only
21 Dec 2009 maria

maria (view profile)

Hi, could you please explain how I can use "mask" to see result of segmentation??

Comment only
17 Mar 2009 Patrick

Greetings Prof., Very nice .. could you please let me know what exactly does the mask variable store ? As what i see it classifies each pixel that falls within each class . Am i correct in that assumption?


24 May 2008 darko brajicic

great job!

27 Apr 2008 Bilo Bilo


15 Aug 2007 smiled fisher

06 Nov 2006 Karthik Raja T

HI, Greetings,can it for my color image segmentation ?

04 Sep 2006 Mikel Rodriguez

12 Jul 2006 carlos mas

03 May 2006 Mohamed Sami

look when u make a code u must show us the output to see it then u read ur code .. try to explain that with output we can see bye

Comment only

Contact us