I have done a watershed segmentation in OpenCV, but I want to split the segments. I thought about splitting it based on the each segment's RGB value.Since RGB value of different segments will be different. But I can't seem to find out how to do it. Anyone knows how to do this splitting based on RGB values? Or any other way of splitting the watershed segments?
What I want is to separate the two different colour zones( brown and pink in this picture) into two images or windows.