Multiresolution linear discriminant analysis: efficient extraction of geometrical structures in images