Method and apparatus for correcting vignetting effect caused on an image captured by lightfield cameras
The disclosure addresses the vignetting effect caused on an image captured by lightfield camera. A method to compensate for the vignetting effect for a lightfield camera comprising an image sensor array including plurality of photosites. The method includes the operations of obtaining luminance values from the each photosite; obtaining a set of weight values for compensating the vignetting effect for the each photosite being associated with a present setting of the lightfield camera; and changing the luminance values of the each photosite based on the obtained a set of the weight values.
1. A method for correcting vignetting effect caused on an image captured by a lightfield camera comprising an image sensor array including plurality of photosites, the method comprising:
obtaining luminance values from each photosite;
obtaining a set of weight values for compensating the vignetting effect for each photosite, wherein said set of weight values is associated with a present setting of the lightfield camera; and
changing the luminance values of each photosite based on the obtained set of the weight values wherein luminance values of each photosite are normalized to be transformed to a maximum magnitude,
wherein a Lambertian object image is captured to generate luminance values of each photosite and wherein the weight values are calculated by:
determining a maximum luminance value from the generated luminance values;
dividing the maximum luminance value by the generated luminance values of the photosites when the Lambertian object image is captured to calculate the weight values;
comparing each luminance value of the generated luminance values with a first value; and
if the compared luminance value of a corresponding photosite is less than the first value, setting a respective weight value of the corresponding photosite equal to 0.
2. The method according to claim 1 , wherein the changing the luminance values of each photosite is performed by multiplying the luminance values of each photosite by the respective weight values associated with each photosite.
3. A device for correcting vignetting effect caused on an image captured by a lightfield camera comprising image sensor array including plurality of photosites, the device comprising a storage storing a set of weight values for compensating the vignetting effect for each photosite and a processor configured to perform:
obtaining luminance values of each photosite;
obtaining a set of weight values for each photosite; and
changing the luminance values of each photosite based on the obtained set of weight values wherein luminance values of each photosite are normalized to be transformed to a maximum magnitude,
wherein a Lambertian object image is captured to generate luminance values of each photosite and wherein the weight values are calculated by:
determining a maximum luminance value from the generated luminance values;
dividing the maximum luminance value by the generated luminance values of the photosites when the Lambertian object image is captured to calculate the weight values;
comparing each luminance value of the generated luminance values with a first value; and
if the compared luminance value of a corresponding photosite is less than the first value, setting a respective weight value of the corresponding photosite equal to 0.
4. The device according to claim 3 , wherein the lightfield camera further comprises:
a primary lens;
a lenslet array including a plurality of microlenses located between the image sensor array and the primary lens;
an additional lens being arranged between the primary lens ( 10 ) and the microlenses at a distance (L 1 ) from the primary lens, the additional lens having a focal length corresponding to the distance (L 1 ).
5. Non-transitory tangible computer-readable medium comprising a computer program product recorded thereon and capable of being run by a processor, including program code instructions for implementing the steps of a method according to claim 1 .