I 'm woriking on Segmentation of Historical documents, so far i have identified the text lines in the historical documents using seam carving method and result image is attached, i wnat to extract or segment those identified lines, which is saperated by carved red line.