US 9,810,602 B2
Method and system for measuring lens distortion
Xingyi Chen, Qingdao (CN); Jianjun Xu, Qingdao (CN); and Xiliang Niu, Qingdao (CN)
Assigned to Qingdao GoerTek Technology Co., Ltd., Qingdao (CN)
Appl. No. 15/314,926
Filed by Qingdao GoerTek Technology Co.,Ltd., Qingdao (CN)
PCT Filed Jun. 26, 2015, PCT No. PCT/CN2015/082496
§ 371(c)(1), (2) Date Nov. 29, 2016,
PCT Pub. No. WO2015/197019, PCT Pub. Date Dec. 30, 2015.
Claims priority of application No. 2014 1 0302056 (CN), filed on Jun. 27, 2014.
Prior Publication US 2017/0199099 A1, Jul. 13, 2017
Int. Cl. G01M 11/02 (2006.01)
CPC G01M 11/0207 (2013.01) 9 Claims
OG exemplary drawing
 
1. A method for measuring lens distortion, comprising:
providing a test card having a dot matrix pattern of K×N dots, wherein the K and the N are both natural numbers, and the K is equal or unequal to the N;
obtaining a distorted image of the test card after being distorted by a lens;
establishing a planar coordinate system for the distorted image by using a dot at an upper left corner of the distorted image as a coordinate origin, a rightward direction from the origin as a positive direction of axis X, and a downward direction from the origin as a positive direction of axis Y;
positioning a center dot and all non-center dots of the distorted image by scanning and searching, and determining coordinate values of the center dot and all the non-center dots in the planar coordinate system; and
calculating a distortion amount of the distorted image by using the coordinate values of the center dot and all the non-center dots, thereby obtaining a distortion amount of the lens;
wherein the positioning a center dot of the distorted image by scanning and searching, and determining coordinate values of the center dot in the planar coordinate system comprises:
setting a square searching area centered at a coordinate of a center of the distorted image, a half of a side length of the square searching area being larger than or equal to two times of a radius of the center dot;
setting a square scanning area centered at a dot at an upper left corner of the square searching area, a half of whose side length is equal to the radius of the center dot; starting from a center of the scanning area to scan the scanning area, and calculating an average value of all pixel points in the scanning area;
in the searching area, sequently moving the center of the scanning area until the searching area is completely scanned; comparing the average values of the pixel points obtained in the scanning area each time with one another, and determining a center of a scanning area where a minimum average value or a maximum average value among all the average values of the pixel points is located as a center of the center dot; and determining in turn a coordinate value of the center of the center dot, and determining the coordinate value of the center of the center dot as the coordinate value of the center dot.