A cognitive pyramid for contextual classification remote sensing images