Background Removal using Gaussian Model
Version 1.0.0.0 (114 KB) by
Alexander Farley
Input image. Get out binary foreground mask.
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 .
MATLAB Release Compatibility
Created with
R2010b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Segmentation and Analysis > Region and Image Properties >
Find more on Region and Image Properties in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: EM_GM
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
RemoveBackground/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
