Background Removal using Gaussian Model

Input image. Get out binary foreground mask.

You are now following this Submission

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 (2026). Background Removal using Gaussian Model (https://www.mathworks.com/matlabcentral/fileexchange/34077-background-removal-using-gaussian-model), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: EM_GM

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0