MATLAB language implementation of camera calibration algorithm