Implementing an aditional method for feature classification with HaarClassifier. Factored out some code.