Visual Servoing Platform
version 3.7.0
Loading...
Searching...
No Matches
HelloWorld.cpp
1
#include <iostream>
2
3
#include <visp3/core/vpConfig.h>
4
#include <visp3/core/vpDebug.h>
5
#include <visp3/core/vpImage.h>
6
#include <visp3/io/vpImageIo.h>
7
8
int
main()
9
{
10
#ifdef ENABLE_VISP_NAMESPACE
11
using namespace
VISP_NAMESPACE_NAME
;
12
#endif
13
14
std::cout <<
"ViSP Hello World example"
<< std::endl;
15
16
vpImage<unsigned char>
I(288, 384);
17
18
I = 128;
19
20
std::cout <<
"ViSP creates \"./myimage.pgm\" B&W image "
<< std::endl;
21
vpImageIo::write
(I,
"./myimage.pgm"
);
22
23
return
EXIT_SUCCESS;
24
}
vpImageIo::write
static void write(const vpImage< unsigned char > &I, const std::string &filename, int backend=IO_DEFAULT_BACKEND)
Definition
vpImageIo.cpp:336
vpImage
Definition of the vpImage class member functions.
Definition
vpImage.h:131
VISP_NAMESPACE_NAME
Definition
vpEigenConversion.h:44
example
manual
hello-world
Autotools
HelloWorld.cpp
Generated by
1.15.0