Patent ID: 11954836
Assignee: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 4:
5. The method of claim 1, wherein obtaining the blurring value corresponding to the pixel in the weight matrix based on the first horizontal summed area table and obtaining the blurring value corresponding to the pixel in the weight image based on the second horizontal summed area table comprises:
obtaining an initial blurring kernel radius corresponding to the pixel in the input image based on the depth-of-field data of the input image;
performing remainder operation on the initial blurring kernel radius based on the preset number of grades and determining a quotient obtained by performing the remainder operation as an actual blurring kernel radius;
determining the blurring value corresponding to the pixel based on the actual blurring kernel radius and a preset blurring kernel shape and according to the first horizontal summed area table, and obtaining the first weighted blurring image corresponding to the weight matrix; and
determining the blurring value corresponding to the pixel based on the actual blurring kernel radius and a preset blurring kernel shape and according to the second horizontal summed area table, and obtaining the second weighted blurring image corresponding to the weight image.