1. A method for generating a master map for a generic class of objects, comprising: selecting a subset of frequent templates from a template pool having a plurality of templates having various degrees of complexity; and formulating a feature selection algorithm to determine a most discriminative template from a pre-selected one of the templates in the template pool; and generating the master map from the formulated feature selection algorithm.