主权项 |
1. A partial lens shading compensation method, comprising:
dividing, from the inside towards the outside of an image area, the image area into a plurality of partial areas, the partial areas being centered on an optical center of the image area, the partial areas including a first partial area, a second partial area, and a third partial area; determining, when a target pixel is identified as being located in the first partial area, a first compensation gain according to the position of the target pixel with reference to the optical center; determining, when the target pixel is identified as being located in the second partial area, a second compensation gain according to the position of the target pixel with reference to the optical center; determining, when the target pixel is identified as being located in the third partial area, a third compensation gain according to the position of the target pixel with reference to the optical center; determining a fourth compensation gain according to the position of the target pixel with reference to the optical center; and determining a mixed compensation value according to the sum of the first compensation gain, the second compensation gain, the third compensation gain, and the fourth compensation gain, so as to compensate the target pixel; wherein within the first partial area, an absolute value of the first compensation gain monotonically varies or oscillates toward the border of the first partial area at which it becomes zero. |