36 #include <visp3/core/vpImage.h>
44 unsigned int size = 16;
49 for (
unsigned int i = 0, cpt = 0; i < size; i++) {
50 for (
unsigned int j = 0; j < size; j++, cpt++) {
51 I_int[i][j] = (int) cpt;
52 I_uchar[i][j] = (
unsigned char) cpt;
53 I_char[i][j] = (char) cpt;
62 for (
unsigned int i = 0, cpt = 0; i < size; i++) {
63 for (
unsigned int j = 0; j < size; j++, cpt++) {
64 I_float[i][j] = (float) sqrt((
double) cpt);
65 I_double[i][j] = sqrt((
double) cpt);
66 I_rgba[i][j] =
vpRGBa( (
unsigned char) cpt);
70 std::cout <<
"I_int:\n" << I_int << std::endl;
71 std::cout <<
"\nI_uchar:\n" << I_uchar << std::endl;
72 std::cout <<
"\nI_char:\n" << I_char << std::endl;
73 std::cout <<
"\nI_float:\n" << I_float << std::endl;
74 std::cout <<
"\nI_double:\n" << I_double << std::endl;
75 std::cout <<
"\nI_rgba:\n" << I_rgba << std::endl;
Definition of the vpImage class member functions.