Could anyone have an idea how i can isolate just the cracks from the image of a concrete surface. My input image is something like this:
I am expecting my output to be something like this:
I have tried canny edge detector but that gives me a broken contour. I tried dilation followed by erosion but that increases the width of crack segment in the binary image and that will be a problem as the width should not be changed. I need a closed contour of the crack without change in width. Can anyone point me in the right direction ?