2 #include <visp/vpDisplayX.h>
3 #include <visp/vpDisplayGDI.h>
4 #include <visp/vpImageIo.h>
5 #include <visp/vpImageSimulator.h>
13 for (
int i = 0; i < 4; i++) X[i].resize(3);
15 X[0][0] = -0.1; X[1][0] = 0.1; X[2][0] = 0.1; X[3][0] = -0.1;
16 X[0][1] = -0.1; X[1][1] = -0.1; X[2][1] = 0.1; X[3][1] = 0.1;
17 X[0][2] = 0; X[1][2] = 0; X[2][2] = 0; X[3][2] = 0;
36 std::cout <<
"Unsupported image format" << std::endl;
39 #if defined(VISP_HAVE_X11)
41 #elif defined(VISP_HAVE_GDI)
44 std::cout <<
"No image viewer is available..." << std::endl;
50 std::cout <<
"A click to quit..." << std::endl;
static void write(const vpImage< unsigned char > &I, const char *filename)
unsigned int getWidth() const
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
void getImage(vpImage< unsigned char > &I, const vpCameraParameters &cam)
Display for windows using GDI (available on any windows 32 platform).
Define the X11 console to display images.
static void flush(const vpImage< unsigned char > &I)
static void display(const vpImage< unsigned char > &I)
Generic class defining intrinsic camera parameters.
void init(const vpImage< unsigned char > &I, vpColVector *_X)
virtual void setTitle(const char *title)=0
Class which enables to project an image in the 3D space and get the view of a virtual camera...
void setInterpolationType(const vpInterpolationType interp)
static double rad(double deg)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
void setCleanPreviousImage(const bool &clean, const vpColor &color=vpColor::white)
unsigned int getHeight() const
virtual bool getClick(bool blocking=true)=0
void setCameraPosition(const vpHomogeneousMatrix &_cMt)
static void read(vpImage< unsigned char > &I, const char *filename)