The purpose of edge detection algorithm is to highlight the edge in the image, which is also the premise and key of image segmentation. However, the traditional edge detection algorithm will amplify the influence of noise in the process of derivative operation, and the noisy edges will often appear, which is not conducive to the accurate extraction of edge. To solve this problem, we propose an edge detection algorithm combining valley lines and watershed algorithm. In this algorithm, the bilateral filter is used to replace the Gaussian filter to achieve edge preserving and denoising. The rewritten Canny operator is used to calculate the low value points and get the valley lines of the image. This process can achieve the first denoising. Then, the valley lines are used to replace the discrete points of water injection and the watershed algorithm is used to calculate the segmentation results of the image. At this time, there are many pseudo edges around the main boundary, and the pseudo edges are deleted by setting the threshold, so as to achieve the effect of secondary denoising. The experimental results show that our method has good performance in noise resistance and edge continuity compared with other and traditional edge detection algorithms.
Read full abstract