Chroma Key Composition 

Chroma key compositing or chroma keying is a common technique to remove the background (typically green) from one or a sequence of images. The background is typically replaced with transparent pixels and then the images are composed with any other background.

In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
Out[2]=

RemoveBackground replaces green pixels of the image with fully transparent pixels.

In[3]:=
Click for copyable input
X
In[4]:=
Click for copyable input
X
Out[4]=

Compose the foreground over a slightly blurred background to also get an out-of-focus effect.

In[5]:=
Click for copyable input
X
In[6]:=
Click for copyable input
X
Out[6]=

Apply chroma key compositing to all frames of a video.

       
Click to play animation