1. A method for global-to-local metric learning for classification and recognition comprising the steps of; using a tree structure constructed with a clustering algorithm at each level, and associating a metric to each one of the tree nodes.