2 #include <visp3/core/vpImage.h> 14 unsigned int igray_max = gray_image.getHeight() - 1;
15 unsigned int jgray_max = gray_image.getWidth() - 1;
16 std::cout <<
"Gray image, last pixel intensity: " << (int)gray_image[igray_max][jgray_max] << std::endl;
18 unsigned int icolor_max = color_image.getHeight() - 1;
19 unsigned int jcolor_max = color_image.getWidth() - 1;
20 std::cout <<
"Color image, last pixel RGB components: " << (int)color_image[icolor_max][jcolor_max].R <<
" " 21 << (
int)color_image[icolor_max][jcolor_max].G <<
" " << (int)color_image[icolor_max][jcolor_max].B
24 std::cout <<
"Catch an exception: " << e << std::endl;
error that can be emited by ViSP classes.