Display example.
#include <visp/vpImage.h>
#include <visp/vpImageIo.h>
#include <visp/vpColor.h>
#include <visp/vpDisplayGTK.h>
#include <visp/vpImagePoint.h>
int main()
{
try {
std::string filename = "./Klimt.ppm";
#ifdef VISP_HAVE_GTK
display.
init(I, 100, 100,
"GTK display") ;
for (unsigned i=0 ; i < 5 ; i++) {
}
"ViSP is a marvelous software",
filename = "./Klimt.overlay.ppm";
std::cout << "\nA click to close the windows..." << std::endl;
#endif
return 0;
}
std::cout << "Catch an exception: " << e << std::endl;
return 1;
}
}