我正在寻找一种方法来提取这个二进制图像中的每一行。
我使用带c ++的opencv库。
我试过的方法:
Step 1: Thinning - resulted in lines with sharp curves when they shouldn't
Step 2: follow the line's path. However, some part of the sample image resulted in
thinning where it created intersections that curve to wrong direction.
Step 3: Erode - all other objects outside the objects skeleton/thinning path.
我确信还有更强大的解决方法。请指导我。
谢谢。
示例图片:
答案 0 :(得分:0)
您可以尝试使用距离变换。线性组合三个版本(L1,L2,C)。然后在它上面应用高斯滤波器。最后做一个阈值处理。
它比减薄更好。