Geometric features projection example.
#include <visp/vpDebug.h>
#include <visp/vpImageIo.h>
#include <visp/vpImage.h>
#include <visp/vpDisplay.h>
#include <visp/vpDisplayGTK.h>
#include <visp/vpHomogeneousMatrix.h>
#include <visp/vpCameraParameters.h>
#include <visp/vpPoint.h>
#include <visp/vpLine.h>
#include <visp/vpCylinder.h>
#include <visp/vpCircle.h>
#include <visp/vpSphere.h>
#include <iostream>
int main()
{
#ifdef VISP_HAVE_GTK
try {
std::cout << "ViSP geometric features display example" <<std::endl;
unsigned int height = 288;
unsigned int width = 384;
I = 255;
display.
init(I,100,100,
"ViSP geometric features display");
std::cout << "A click in the display to exit" << std::endl;
std::cout << "ViSP creates \"./geometricFeatures.ppm\" B&W image "<< std::endl;
return 0;
}
std::cout << "Catch an exception: " << e << std::endl;
return 1;
}
#endif
}