Image boundary search method and device
A boundary position and boundary technology, applied in the field of image processing, can solve the problem of low image boundary recognition accuracy, achieve the effect of improving search accuracy and search speed, small calculation amount, and large information granularity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] figure 1 It is a flow chart of an image boundary search method provided by Embodiment 1 of the present invention. This embodiment is applicable to search for the upper or lower boundary of an image. The method can be executed by an image boundary search device, which can use software and / or hardware implementation.
[0036] The method of Embodiment 1 of the present invention specifically includes:
[0037] S101. Perform binarization on the target image to obtain a binarized target image.
[0038] Specifically, image binarization is also referred to as image black-and-white. The gray value of a pixel on the image is set to 0 or 255, and the entire image presents an obvious black-and-white effect. Wherein, a grayscale value of 0 represents black, and a grayscale value of 255 represents white. In this embodiment, the target image is binarized by using the maximum inter-class variance method (OTSU algorithm) or the P parameter method to obtain a binarized target image. ...
Embodiment 2
[0048] Figure 2A It is a flow chart of a method for searching the upper boundary of an image in Embodiment 2 of the present invention. Embodiment 2 is further described on the basis of Embodiment 1 by taking the upper boundary of a target image as an example. Such as Figure 2A As shown, the method of the second embodiment of the present invention specifically includes:
[0049] S201. Perform binarization on the target image to obtain a binarized target image.
[0050]S202. Acquire a column boundary point array of the binarized target image, wherein each value in the column boundary point array corresponds to the position of the upper boundary point of each column in each column in the binarized target image.
[0051] Preferably, for each column in the binarized target image, a point that satisfies the upper boundary point condition is searched column by column from top to bottom as the upper boundary point;
[0052] The position of the upper dividing point in each column ...
Embodiment 3
[0066] image 3 It is a flow chart of a method for searching the lower boundary of an image provided by Embodiment 3 of the present invention. On the basis of Embodiment 1, Embodiment 3 is further described by taking the lower boundary of a target image as an example. Such as image 3 As shown, the method of the third embodiment of the present invention specifically includes:
[0067] S301. Perform binarization on the target image to obtain a binarized target image.
[0068] S302. Acquire a column boundary point array of the binarized target image, wherein each value in the column boundary point array corresponds to a position of a lower boundary point of each column in each column in the binarized target image.
[0069] Preferably, for each column in the binarized target image, a point satisfying the lower boundary point condition is searched column by column from bottom to top as the lower boundary point;
[0070] The position of the lower dividing point in each column is...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


