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

Claim 5:
6. The method of claim 5, wherein determining the blurring value corresponding to the pixel based on the actual blurring kernel radius and the preset blurring kernel shape comprises:
obtaining a first offset and a second offset for a row where the pixel is located within the preset blurring kernel shape based on the actual blurring kernel radius and a correspondence between blurring kernel offsets and blurring kernel radii, wherein the correspondence corresponds to the preset blurring kernel shape;
obtaining a first horizontal summing value corresponding to the first offset in a horizontal summed area table and obtaining a second horizontal summing value corresponding to the second offset in a horizontal summed area table for the row within the preset blurring kernel shape, wherein for obtaining the first weighted blurring image, the horizontal summed area table is the first horizontal summed area table, and for the second weighted blurring image, the horizontal summed area table is the second horizontal summed area table;
obtaining a sum of pixel values for the row within the preset blurring kernel shape based on the first horizontal summing value and the second horizontal summing value;
summing up the sum of each row within the preset blurring kernel shape to obtain the initial blurring value of the pixel; and
determining the blurring value corresponding to the pixel based on the initial blurring value of the pixel.