ViSP
HelloWorld.cpp
1 #include <iostream>
2 
3 #include <visp/vpDebug.h>
4 #include <visp/vpImage.h>
5 #include <visp/vpImageIo.h>
6 
7 
8 int main()
9 {
10  std::cout << "ViSP Hello World example" <<std::endl;
11 
12  vpImage<unsigned char> I(288, 384);
13 
14  I = 128;
15 
16  std::cout << "ViSP creates \"./myimage.pgm\" B&W image " <<std::endl;
17  vpImageIo::write(I, "./myimage.pgm");
18 
19  return 0;
20 }
static void write(const vpImage< unsigned char > &I, const char *filename)
Definition: vpImageIo.cpp:476