The Luminance Key node creates a matte based on the luminance of an image. A front clip can be connected to the Luminance Key node and will process a result clip that can be used as a matte.
There are two parameters available:
See Creating a Key by Setting the Luminance.
These settings can be animated and are available as channels.