1. A method of performing image processing, the method comprising: training a random forest RF classifier based on low-level features of training images and a high-level feature of the training images; using similarity values generated by the RF classifier to determine a subset of the training images that are most similar to one another; and classifying an input image for the high-level feature using the RF classifier and the determined subset of training images.