image thumbnail

Background Removal using Gaussian Model

version 1.0.0.0 (114 KB) by Alexander Farley
Input image. Get out binary foreground mask.

3.4K Downloads

Updated 04 Dec 2011

View License

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

Cite As

Alexander Farley (2022). Background Removal using Gaussian Model (https://www.mathworks.com/matlabcentral/fileexchange/34077-background-removal-using-gaussian-model), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: EM_GM

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!