Code covered by the BSD License
04 Dec 2011
Input image. Get out binary foreground mask.
Watch this File
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.
Hi Supriya, I just tested in R2013a and it seems to work correctly.
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 statsremovenan....how to run it....