internal parameters include a focus distance a principal point and a ccd aspect ration and the external parameter is configured of rotation and translation about a three dimensional reference coordinate through the geometric correction how a point x y z on the three dimensional reference coordinate is related to a two dimensional point x y can be determined that is following eq 1 shows the mapping relation thereof s u2061 x y 1 k u2061 r t u2062 x y z 1 u2062 k f 0 o x 0 u03b1 u2062 u2062 f o y 0 0 1 eq u2062 1 in eq 1 k is a matrix for internal parameters f denotes a focus distance of a camera u03b1 denotes a ccd aspect ratio and o x o y denotes a location of a camera focus r denotes a 3 u00d7 3 matrix that represents a rotation of a camera based on a reference coordinate and t is a 3 u2212 1 matrix denoting a translation of a camera s is a random scale constant to calculate a camera parameter from a lattice pattern is also widely known to those skilled in the art therefore details thereof are omitted after the optical correction step s 12 and the geometric correction step s 13 a camera selection step s 21 and a cost function calculation step s 22 are.