摘要:In order to solve the shortcomings of traditional Sobel edge detection operator, such as low accuracy of image edge location and rough edge extracted, an improved edge detection algorithm based on Sobel operator is proposed. Firstly, in the aspect of the accuracy of edge detection, the direction template is increased from two directions of horizontal and vertical to eight directions; secondly, in terms of the rough edge extracted and the noise sensitivity, combined with the operation of mathematical morphology, the edge can be refined, and at the same time, some part of the noise can be suppressed. The experiment results show that the improved edge detection algorithm has a better accuracy in image positioning, and a certain ability to suppress noise. Finally, the detected image edge of the image is more delicate and clear than the traditional Sobel operator.