Regions adjacency graph applied to color image segmentation