I have an image with some contours:
I want to segment the sections that appear around those contours, ideally based in the distance among the adjacent lines. As in the image below, I need to split it in subregions as the ones red and pink colored. Does anybody know an algorithm for that task?