1. A method performed in a digital processor for processing a document image to determine image types present therein the steps comprising: receiving, from an image source, a document image having a plurality of pixels therein, each pixel represented by a binary image signal, and storing at least a portion thereof representing a region of the document image in a data buffer; retrieving, from the data buffer, the binary image signals for the document image; and determining, using template matching filters, image types present in the region of the document image, said determining step including applying a first stage template matching filter to the binary image signals for the document image to produce a first filtered output image, applying a second stage template matching filter to the first filtered output image to produce an error image, and XORing using a logic circuit the error image and the first filtered output to produce a first output image which substantially removes regions of a received document image.