#include <visp3/core/vpCameraParameters.h>
#include <visp3/io/vpImageIo.h>
#include <visp3/core/vpImageConvert.h>
#if VISP_HAVE_OPENCV_VERSION >= 0x020300
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#endif
int main()
{
#if VISP_HAVE_OPENCV_VERSION >= 0x020300
double u0 = 326.6;
double v0 = 215.0;
double px = 582.7;
double py = 580.6;
double kud = -0.3372;
double kdu = 0.4021;
cv::Mat D = (cv::Mat_<double>(4,1) << cam.
get_kud(), 0, 0, 0);
cv::Mat image;
cv::Mat imageUndistorted;
cv::undistort(image, imageUndistorted, K, D);
#endif
}