Discriminant analysis based feature extraction for pattern recognition