The Auto Matte node accepts a front clip as input, which it uses to generate a high-contrast matte. The Auto Matte node menu is similar to the Auto Matte command in the Fx menu.
Image courtesy of Optimus
See Generating a High-Contrast Matte.