added region labeling modulation and erode