View License

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

» Watch video

Highlights from
Background Removal using Gaussian Model

4.0 | 5 ratings Rate this file 14 Downloads (last 30 days) File Size: 114 KB File ID: #34077 Version: 1.0
image thumbnail

Background Removal using Gaussian Model



Input image. Get out binary foreground mask.

| Watch this File

File Information

Models image as sample from one of 2 Gaussians in RGB space. Classifies each pixel as having originated from one Gaussian.

In the future this could be expanded to remove the ith, kth, etc Gaussians from an N-Gaussian image model.

RemoveBackground.m contains a demonstration of how to use the main function, separate.m


Em Gm inspired this file.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
13 Sep 2016 liu liu

though it has a good result for the picture author gives, this method has a bad effect for my picture.
thank you !

28 Apr 2016 Kapil Nagwanshi

It is not a fast code but output is awesome.

28 Mar 2014 Maxaon

Maxaon (view profile)


05 Dec 2013 Sonit SukhRaj Singh

22 Nov 2013 Alexander Farley

Hi Supriya, I just tested in R2013a and it seems to work correctly.

Comment only
22 Oct 2013 supriya M

sir i tried to run this code in matlab2013-computer vision toolbox as well as 2010 but it shows error for2013-undefined function kmeans,also to run it....

Comment only
05 Sep 2013 Reja Rabbi

Contact us