Method and device for acquiring LBP characteristics
An acquisition method and bit technology, applied in the field of image processing, can solve the problems of consumption, large system resources, low efficiency of LBP features, etc., and achieve the effect of improving acquisition efficiency, obvious efficiency, and reducing system resource consumption.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 2 The implementation process of the method for acquiring LBP features provided by the first embodiment of the present invention is shown, and the details are as follows:
[0027] In step S201, the gray value of the central pixel of the LBP feature to be calculated and the gray value of P pixels around the central pixel are acquired.
[0028] Specifically, the P pixels around the central pixel are related to the neighborhood radius R of the central pixel and the value defined by the user. For example, when the neighborhood radius R of the central pixel is 1, it includes 8 adjacent Pixel, the user can also define the adjacent pixels in the four directions of up, down, left and right.
[0029] The gray value of the pixel refers to the color depth of a point in a black and white image, generally ranging from 0 to 255, with white being 255 and black being 0. According to the needs of image storage and calculation, the gray value of the pixel can be compressed, such...
Embodiment 2
[0035] image 3 The implementation process of acquiring the LBP features provided by the second embodiment of the present invention is shown, and the details are as follows:
[0036] In step S301, allocate Q in the storage area N-1 storage units, each storage unit includes at least N-1 bits, and defines each storage unit and array (M 1 , M 2 , M 3 ... M N )correspond.
[0037] Specifically, the storage area may be a hard disk, a buffer, or a memory. In order to improve image processing efficiency and consider the size of the storage space, the storage area is generally set as a memory.
[0038] Since the range of the gray value of each pixel is [0, Q), the number of possible values obtained by combining N-1 surrounding pixels with a fixed central pixel is Q N-1For each corresponding value, N-1 surrounding pixels correspond to N-1 cases of greater than or equal to or less than, and N-1 data bits are allocated to store the corresponding comparison results.
[0039] In s...
Embodiment 3
[0053] Figure 5 The implementation process of the method for acquiring LBP features provided by the third embodiment of the present invention is shown, and the details are as follows:
[0054] In step S501, the gray value of the central pixel of the LBP feature to be calculated and the gray value of P pixels around the central pixel are obtained.
[0055] In step S502, the acquired gray value data is compressed, the acquired gray value data is the gray value of the central pixel of the LBP feature to be calculated and the gray values of P pixels around the central pixel value.
[0056] Wherein, the step of compressing the acquired gray value data is specifically:
[0057] According to the pre-stored gray value range, the acquired gray value data is compressed by a linear interpolation method.
[0058] In step S503, according to the corresponding relationship between the pre-stored gray value array and the LBP feature, search for the gray value of the central pixel of the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 