Directional local extrema patterns: a new descriptor for content based image retrieval