Method and device for edge detection
A boundary detection and boundary technology, which is applied in the field of image processing, can solve problems such as affecting recognition, inaccurate boundary detection, and increasing the influence of boundary detection in stained areas, so as to achieve the effect of improving accuracy and reducing influence
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] figure 1 It is a flow chart of a method for boundary detection provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where boundary detection needs to be performed on an image. The method can be performed by a device for boundary detection, which can be controlled by software and\ or hardware components. The method provided in this embodiment specifically includes the following steps:
[0023] Step 110, acquiring a grayscale image corresponding to the image to be detected.
[0024] Preferably, the image to be detected is an image of a preset area in the original image corresponding to the foreground image whose boundary needs to be determined, so that in the subsequent boundary detection process, the interference information of other area images in the original image is reduced. Wherein, the preset area includes the foreground image that needs to determine the boundary.
[0025] If the original image is an image including a...
Embodiment 2
[0048] figure 2 It is a flowchart of a boundary detection method provided by Embodiment 2 of the present invention. This embodiment is further optimized on the basis of the foregoing embodiments. The method provided in this embodiment specifically includes the following steps:
[0049] Step 210, acquiring a grayscale image corresponding to the image to be detected.
[0050] Step 220, determine the boundary detection range.
[0051] In this embodiment, the boundary detection range includes: an upper boundary detection range and a lower boundary detection range.
[0052] Step 230, acquiring a pixel within the boundary detection range in the grayscale image as a target pixel.
[0053] Preferably, after the upper boundary detection range or the lower boundary detection range is determined, each pixel point within the upper boundary detection range or the lower boundary detection range is traversed, and the traversed current pixel point is used as the target pixel point.
[00...
Embodiment 3
[0077] image 3It is a flow chart of a boundary detection method provided by Embodiment 3 of the present invention, and this embodiment is further optimized on the basis of the foregoing embodiments. The method provided in this embodiment specifically includes the following steps:
[0078] Step 310, acquiring a grayscale image corresponding to the image to be detected.
[0079] Step 320, determine the boundary detection range.
[0080] In this embodiment, the boundary detection range includes: a left boundary detection range and a right boundary detection range.
[0081] Step 330, acquiring a pixel within the boundary detection range in the grayscale image as the target pixel.
[0082] Preferably, after the left boundary detection range or the right boundary detection range is determined, each pixel point within the left boundary detection range or the right boundary detection range is traversed, and the current pixel point traversed is used as the target pixel point.
[0...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


