Right use of initUndistortRectifyMap and remap from OpenCV
问题 I want to undistort a camera image. The undistort function of OpenCV is too slow, so I want to split it like mentioned in the documentation into the 2 calls of initUndistortRectifyMap (as init step) and remap (in the render loop). At first, I tried a test program with the principal approach: //create source matrix cv::Mat srcImg(res.first, res.second, cvFormat, const_cast<char*>(pImg)); //fill matrices cv::Mat cam(3, 3, cv::DataType<float>::type); cam.at<float>(0, 0) = 528.53618582196384f;