OpenCV - store camera matrix and distortion coefficients as Mat
问题 I've used the sample OpenCV program to calculate the camera matrix and distortion coefficients from my camera and produced an xml file with the relevant data. I'm trying to use it through the undistort function but I'm not sure how to store the values as a Mat . Mat cameraMatrix; Mat distortionCoefficients; undistort(image, newImage, cameraMatrix, distortionCoefficients); I've tried: Mat cameraMatrix = 1.7514028018776246e+03 0. 1.2635000000000000e+03 0. 1.7514028018776246e+03 9