ViSP
2.8.0
Main Page
Related Pages
Modules
Classes
Examples
tutorial-image-reader.cpp
1
2
#include <visp/vpImageIo.h>
3
4
int
main()
5
{
6
try
{
7
vpImage<vpRGBa>
I;
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
vpImageIo::write
static void write(const vpImage< unsigned char > &I, const char *filename)
Definition:
vpImageIo.cpp:442
vpImageIo::read
static void read(vpImage< unsigned char > &I, const char *filename)
Definition:
vpImageIo.cpp:277
vpImage< vpRGBa >
ViSP-2.8.0
tutorial
image
tutorial-image-reader.cpp
Generated on Wed Sep 2 2015 14:12:31 for ViSP by
1.8.9.1