image thumbnail

Background Removal using Gaussian Model

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


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 (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: EM_GM

Community Treasure Hunt

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

Start Hunting!