I am trying to identify cracks in different structures using OpenCV. I have used sobel edge detection to detect cracks. The images have been attached below. However, it also detects edges which add to the false positives. I want to subtract the edges and just keep the crack highlighted. The image that I am working on has a wooden panel with crack.
Original Image:
Crack Detected: