A graph-based relevance feedback mechanism in content-based image retrieval