#include <visp/vpImageIo.h>
#include <visp/vpImageConvert.h>
int main()
{
#if defined(VISP_HAVE_OPENCV) && (VISP_HAVE_OPENCV_VERSION >= 0x020100)
try {
cv::Mat A;
A = cv::imread("lena.bmp", CV_LOAD_IMAGE_GRAYSCALE);
# ifdef VISP_HAVE_LIBPNG
# endif
}
std::cout << "Catch an exception: " << e << std::endl;
}
#endif
}