We have proposed and implemented an algorithm to automatically locate landmarks in images using templates. The method optimizes the template and its weights to increase the discrimination between those parts of the image which correspond to the template and those which do not.
This method is a general approach to robust nonparametric discrimination.