Text this: Tissue-like P system for region-based and edge-based segmenations