2 #include <visp/vpImageIo.h>
3 #include <visp/vpImageConvert.h>
7 #if defined(VISP_HAVE_OPENCV) && (VISP_HAVE_OPENCV_VERSION >= 0x020100)
10 #if (VISP_HAVE_OPENCV_VERSION >= 0x030000)
11 A = cv::imread(
"lena.bmp", cv::IMREAD_GRAYSCALE);
13 A = cv::imread(
"lena.bmp", CV_LOAD_IMAGE_GRAYSCALE);
19 # ifdef VISP_HAVE_LIBPNG
24 std::cout <<
"Catch an exception: " << e << std::endl;
static void write(const vpImage< unsigned char > &I, const char *filename)
static void convert(const vpImage< unsigned char > &src, vpImage< vpRGBa > &dest)
error that can be emited by ViSP classes.