Multi-agent system for Image Segmentation