The traditional Canny algorithm has the problem of edge loss in the process of smoothing the image and needs to set up the high and low threshold, an improved adaptive edge detection algorithm based on Canny is proposed in this paper. Firstly, the improved anisotropic diffusion filter is used to smooth the image, and the edge is protected when de-noising. Then, 4 gradient templates in horizontal direction, vertical direction, 45° direction, and 135° direction are used to calculate gradient amplitude. Finally, the threshold is adaptively determined according to the gray histogram of image. Experimental results indicate that the proposed algorithm has better anti-noise performance while detecting more edge details.
|