Display example.
#include <visp3/core/vpColor.h>
#include <visp3/core/vpImage.h>
#include <visp3/core/vpImagePoint.h>
#include <visp3/gui/vpDisplayGTK.h>
#include <visp3/io/vpImageIo.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++) {
}
filename = "./Klimt.overlay.ppm";
std::cout << "\nA click to close the windows..." << std::endl;
#endif
return EXIT_SUCCESS;
std::cout << "Catch an exception: " << e << std::endl;
return EXIT_FAILURE;
}
}