48 #include <visp/vpConfig.h>
49 #if (defined (VISP_HAVE_X11) || defined(VISP_HAVE_GTK) || defined(VISP_HAVE_GDI))
52 #include <visp/vpCameraParameters.h>
53 #include <visp/vpMeterPixelConversion.h>
54 #include <visp/vpPoint.h>
55 #include <visp/vpMath.h>
58 #include <visp/vpColor.h>
59 #include <visp/vpImage.h>
61 #include <visp/vpDisplay.h>
63 #include <visp/vpProjectionDisplay.h>
65 #include <visp/vpBasicFeature.h>
75 listFp.push_back(&fp);
93 dIcam.
init(Icam,100,100) ;
98 dIext.
init(Iext,400,100) ;
117 const bool &displayTraj)
120 for (std::list<vpForwardProjection *>::const_iterator it = listFp.begin() ; it != listFp.end(); ++it )
123 fp->
display(I,cextMo,cam, color) ;
127 for(
unsigned int i=0;i<traj.
getRows();++i)
134 const unsigned int n = traj.
getRows();
virtual void displayCircle(const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1)=0
void resize(const unsigned int nrows, const unsigned int ncols, const bool nullify=true)
virtual void displayArrow(const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1)=0
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
static void convertPoint(const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v)
Point coordinates conversion from normalized coordinates in meter to pixel coordinates ...
Class to define colors available for display functionnalities.
void resize(const unsigned int height, const unsigned int width)
set the size of the image
virtual void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)=0
void track(const vpHomogeneousMatrix &cMo)
static const vpColor green
static int internalView()
void displayCamera(vpImage< unsigned char > &I, const vpHomogeneousMatrix &cextMo, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam)
Class that defines what is a generic geometric feature.
Generic class defining intrinsic camera parameters.
static int externalView()
void insert(vpForwardProjection &fp)
void display(vpImage< unsigned char > &I, const vpHomogeneousMatrix &cextMo, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor color, const bool &displayTraj=false)
double get_Z() const
Get the point Z coordinate in the camera frame.
vpHomogeneousMatrix inverse() const
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
void init(vpImage< unsigned char > &I, int winx=-1, int winy=-1, const char *title=NULL)
unsigned int getRows() const
Return the number of rows of the matrix.
static const vpColor blue
void setWorldCoordinates(const double ox, const double oy, const double oz)
Set the point world coordinates. We mean here the coordinates of the point in the object frame...