Estimating camera parameters like focal length, distortion coefficients and principal point automatically