2#include <visp3/core/vpConfig.h>
3#include <visp3/core/vpImage.h>
7#ifdef ENABLE_VISP_NAMESPACE
19 unsigned int igray_max = gray_image.getHeight() - 1;
20 unsigned int jgray_max = gray_image.getWidth() - 1;
21 std::cout <<
"Gray image, last pixel intensity: " <<
static_cast<int>(gray_image[igray_max][jgray_max]) << std::endl;
23 unsigned int icolor_max = color_image.getHeight() - 1;
24 unsigned int jcolor_max = color_image.getWidth() - 1;
25 std::cout <<
"Color image, last pixel RGB components: "
26 <<
static_cast<int>(color_image[icolor_max][jcolor_max].R) <<
" "
27 <<
static_cast<int>(color_image[icolor_max][jcolor_max].G) <<
" "
28 <<
static_cast<int>(color_image[icolor_max][jcolor_max].B) << std::endl;
31 std::cout <<
"Catch an exception: " <<
e << std::endl;
error that can be emitted by ViSP classes.
Definition of the vpImage class member functions.