Simple Chroma Keying/ Green Screening in Matlab

version (590 KB) by Aaron Wetzler
Shows a very straightforward chroma key method in Matlab


Updated Fri, 26 Sep 2014 21:07:34 +0000

View License

This is a simple demonstration of how to
perform chroma keying in Matlab using HSV.
The method converts an RGB image to HSV and then thresholds the Hue (H) channel between two limits. The typical usage scenario would be for swapping the background once the mask has been generated.

Cite As

Aaron Wetzler (2022). Simple Chroma Keying/ Green Screening in Matlab (, MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

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

Start Hunting!