Using OpenCV API to undistoration complete