CPC G06T 5/006 (2013.01) [G02B 27/0025 (2013.01)] | 4 Claims |
1. A method for correcting lateral chromatic aberration (LCA), comprising:
capturing a target image from a test chart;
calculating amount of LCA of a camera module based on the target image, comprising:
upscaling the target image to obtain an upscaled target image;
detecting pattern elements and calculating mass centers of the pattern elements based on the upscaled target image;
compensating for shift of the mass centers by Bayer shift compensation;
removing the pattern elements with wrong parameters by an outlier removal algorithm;
extrapolating the mass centers of the pattern elements at borders of the upscaled target image; and
converting scattered data into 2D regularly sampled grid to obtaining the amount of LCA;
storing the amount of LCA as the calibration data;
acquiring system parameters and pre-stored calibration data;
obtaining the LCA of a camera to be corrected by calculating the system parameters; and
correcting the LCA by the calibration data.
|