Use the Auto Matte to generate a high-contrast matte from a clip.
Image courtesy of Optimus
To access the Auto Matte menu, use:
Batch, then select a node from the Node bin.
Timeline, then use Batch FX (see Creating Batch FX).
Tools, then select from the menu (See Accessing Tools).
This node accepts a front clip as input, and outputs a result.