CPC H04N 25/611 (2023.01) [G02B 27/005 (2013.01); G06T 5/006 (2013.01); G06T 7/80 (2017.01); H04N 25/61 (2023.01); G06T 2207/10024 (2013.01)] | 9 Claims |
1. A method for correcting lateral chromatic aberration, comprising:
constructing a relationship model between lens position and magnitude of lateral chromatic aberration based on preset parameters of lens positions, and storing the relationship model as calibration data, comprising
capturing a target image from a test chart-diagram;
calculating magnitude of lateral chromatic aberration of a camera module based on the target image, comprising
amplifying the target image to obtain an amplified target image;
detecting target graphics and calculating mass centers of the target graphics based on the amplified target image;
compensating for shift of the mass centers by sampling shift compensation;
removing target graphics with wrong parameters by an outlier removal algorithm;
extrapolating the mass centers of the target graphics at borders of the amplified target image; and
converting scattered data into a 2D regular grid, so as to obtain magnitude of lateral chromatic aberration; and
storing the relationship model between lens position and magnitude of lateral chromatic aberration as calibration data;
acquiring system parameters of a camera to be corrected and pre-stored calibration data;
obtaining the lateral chromatic aberration of the camera to be corrected by calculating the system parameters; and
correcting the lateral chromatic aberration by the calibration data.
|