Boundary detecting method and device of net image
A boundary detection and image technology, which is applied in the field of image processing, can solve the problem of low boundary positioning accuracy of hanging network images, and achieve the effect of improving the boundary positioning accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] Image 6 When the current pixel is a thin line of a single pixel on the boundary, or a special point in the horizontal or vertical direction, the flow of the method for determining whether the current pixel is a pixel on the boundary mainly includes:
[0083] Step 601: Determine the detection template for detecting the current pixel point as the special point detection template.
[0084] Step 602: Using the special point detection template, calculate the response value of the current pixel.
[0085] Step 603: Determine whether the response value of the current pixel point is greater than the response value of the pixel point adjacent to this pixel point, if yes, continue to step 604, otherwise, go to step 606.
[0086] Step 604: Determine whether the difference between the response value of the current pixel point and the adjacent pixel point is greater than the set threshold, if yes, continue to step 605, otherwise, go to step 606.
[0087] Step 605: Determine that t...
Embodiment 2
[0090] Figure 7 When the current pixel point is not a point on a thin line of a single pixel point, or a special point in the horizontal and vertical directions, the method flow for determining whether the current pixel point is a pixel point on the boundary mainly includes:
[0091] Step 701: According to the boundary direction of the current pixel point, select a direction detection template whose angle is consistent with the boundary direction.
[0092] For example, if the boundary direction of the current pixel point is 22.5°, select a direction detection template with an angle of 22.5° as the boundary detection template of the current pixel point. Wherein, the direction detection template is an N×N coefficient matrix, and N is an integer greater than 1.
[0093] Step 702: Using the direction detection template, calculate the response value of the current pixel.
[0094] First, the center of the direction detection template is coincident with the current pixel point, an...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 