ViSP  2.8.0
tutorial-image-reader.cpp
1 
2 #include <visp/vpImageIo.h>
3 
4 int main()
5 {
6  try {
8  vpImageIo::read(I, "lena.jpg");
9  vpImageIo::write(I, "lena.png");
10  }
11  catch(...) {
12  std::cout << "Unsupported image format" << std::endl;
13  }
14 }
15 
static void write(const vpImage< unsigned char > &I, const char *filename)
Definition: vpImageIo.cpp:442
static void read(vpImage< unsigned char > &I, const char *filename)
Definition: vpImageIo.cpp:277