Automatic classification of digital photographs based on decision forests