Canny edge detection algorithm based on local threshold

An edge detection algorithm and local threshold technology, which is applied in computing, image analysis, image enhancement, etc., can solve the problems of not considering the difference of local thresholds, the block effect of edge connections between blocks, and the inability to detect local obvious edges, etc. , to achieve the effect of reducing time complexity, improving edge detection and connection rules, and avoiding block effects

Active Publication Date: 2019-11-08
CHINA WEST NORMAL UNIVERSITY
View PDF3 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1) The threshold is set empirically, and the adaptive ability is poor; 2) Based on the global threshold, the difference in local threshold is not considered, and local obvious edges cannot be detected
For problem 1, the researchers proposed various methods to automatically calculate the adaptive high and low thresholds, such as using the maximum inter-class variance method, designing an automatic calculation formula based on the gray mean and variance mean of the image, and automatically calculating the high and low thresholds based on the gradient difference histogram; For problem 2, an adaptive edge detection method based on Canny theory [J] by Wang Zhi and He Saixian [J], in the Chinese Journal of Image and Graphics, 2004, 9(8): 957-962, the whole image is divided into For several sub-images, the edge gradient information of the sub-images is combined with the global edge gradient information to adaptively generate a dynamic threshold; Song Ying, Chen Ke, Lin Jiangli, etc.'s edge detection algorithm based on image segmentation [J], Computer Engineering, 2010 , 36(14): 196-197 In the literature, the image is divided into non-overlapping sub-blocks, and then the high and low thresholds of each sub-block are calculated, but there is a block effect problem in the edge connection between blocks; Zhang Fan, Peng Zhongwei, Meng Shuijin based on Improved Canny edge detection method with adaptive threshold [J], Computer Applications, 2012, 32(8): 2296-2298 In the literature, the image gradient variance is used as a criterion to divide the image into blocks, and then the maximum inter-class variance is used for each sub-block The method automatically obtains the high and low thresholds, and uses the interpolation method to solve the block effect, but the threshold value of the pixels in each sub-block is the same, there may still be inter-block effects for complex images, and different pictures need to set different sizes of judgment parameters K

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Canny edge detection algorithm based on local threshold
  • Canny edge detection algorithm based on local threshold
  • Canny edge detection algorithm based on local threshold

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056] The specific implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings and specific examples.

[0057] Such as figure 1As shown, a Canny edge detection algorithm based on local threshold, including the following steps:

[0058] 1) The image is smoothed and filtered, and the noise is removed by Gaussian filtering;

[0059] 2) Calculate the image gradient magnitude and direction based on the smoothed image;

[0060] 3) In the 3×3 neighborhood of the pixel, perform non-maximum value suppression calculation on the gradient direction to obtain the edge point, if the magnitude of the gradient of the current pixel is greater than the gradient magnitude of two adjacent pixels in the positive and negative direction of the gradient value, the point is considered to be an edge point, and its corresponding position is marked as 1, otherwise the point is suppressed as a non-edge point, and its correspondi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a Canny edge detection algorithm based on a local threshold, and the algorithm mainly comprises the following steps: 1), carrying out the smooth filtering of an image, and removing noise through Gaussian filtering; 2) calculating an image gradient amplitude and direction based on the smoothed image; 3) performing non-maximum suppression calculation on the gradient directionto obtain an edge point, if the amplitude of the gradient of the current pixel point is greater than the gradient amplitude of two adjacent pixel points in the positive and negative directions of thegradient, regarding the point as the edge point, and marking the corresponding position of the point as 1, otherwise, suppressing the point as a non-edge point, and marking the corresponding positionof the point as 0; 4) obtaining a global proportion value; 5) calculating a local high-low threshold value matrix through an acceleration algorithm according to the global proportion value, and 6) detecting edges according to a double-threshold value matrix to obtain a final edge image. The Canny algorithm can detect the local significant edges in the image in a self-adaptive mode and has good acceleration calculation performance.

Description

technical field [0001] The invention belongs to the technical field of digital image processing, and in particular relates to a Canny edge detection algorithm based on a local threshold. Background technique [0002] Edge is the most basic feature of an image. It can greatly reduce the information to be processed while retaining the shape information of the object. Therefore, edge detection is the most basic problem in the field of image processing. Its solution is crucial for feature extraction, description, and target recognition. Research has an important impact. The edge of a grayscale image refers to the most significant part of the grayscale change in the local area of ​​the image. The grayscale change of the image can be expressed by the gradient, and the first-order differential operator and the second-order differential operator are commonly used to describe the gradient. These operators are simple in algorithm and have better real-time performance, but they are mo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T7/13G06T7/136G06T5/00
CPCG06T7/13G06T7/136G06T5/002
Inventor 郑伯川张征杨泽静何育欣
Owner CHINA WEST NORMAL UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products