1 #include <visp3/core/vpCameraParameters.h> 3 #include <visp3/core/vpImageConvert.h> 4 #include <visp3/io/vpImageIo.h> 6 #if VISP_HAVE_OPENCV_VERSION >= 0x040000 7 #include <opencv2/core/core.hpp> 8 #include <opencv2/imgproc/imgproc.hpp> 9 #include <opencv2/calib3d/calib3d.hpp> 10 #elif VISP_HAVE_OPENCV_VERSION >= 0x020300 11 #include <opencv2/core/core.hpp> 12 #include <opencv2/imgproc/imgproc.hpp> 17 #if VISP_HAVE_OPENCV_VERSION >= 0x020300 30 cv::Mat D = (cv::Mat_<double>(4, 1) << cam.
get_kud(), 0, 0, 0);
44 cv::Mat imageUndistorted;
45 cv::undistort(image, imageUndistorted, K, D);
static void convert(const vpImage< unsigned char > &src, vpImage< vpRGBa > &dest)
static void write(const vpImage< unsigned char > &I, const std::string &filename)
Generic class defining intrinsic camera parameters.
static void read(vpImage< unsigned char > &I, const std::string &filename)