debuging saprated
region segmentation done