1. A method of generating one or more image anchor templates for discriminating between documents of a first class and documents of other classes, said method comprising: a) generating one or more candidate image anchor templates using one or more seed image anchor templates and/or at least one of one or more exemplars of the first class; b) determining a quality score for each of the one or more candidate image anchor templates using a computer processor and the one or more exemplars of the first class; c) ranking the one or more candidate image anchor templates according to quality score; and d) selecting one or more of the most highly ranked image anchor templates.