Contextual multi-scale image classification on quadtree