44 #include <visp3/core/vpConfig.h> 45 #if defined(VISP_HAVE_DISPLAY) 48 #include <visp3/core/vpCameraParameters.h> 49 #include <visp3/core/vpMath.h> 50 #include <visp3/core/vpMeterPixelConversion.h> 51 #include <visp3/core/vpPoint.h> 54 #include <visp3/core/vpColor.h> 55 #include <visp3/core/vpImage.h> 57 #include <visp3/core/vpDisplay.h> 59 #include <visp3/gui/vpProjectionDisplay.h> 69 listFp.push_back(&fp);
84 dIcam.
init(Icam, 100, 100);
88 dIext.
init(Iext, 400, 100);
98 const bool &displayTraj,
const unsigned int thickness)
101 for (std::list<vpForwardProjection *>::const_iterator it = listFp.begin(); it != listFp.end(); ++it) {
103 fp->
display(I, cextMo, cam, color, thickness);
107 for (
unsigned int i = 0; i < traj.
getRows(); ++i)
114 const unsigned int n = traj.
getRows();
115 traj.
resize(n + 1, 2,
false);
122 const unsigned int thickness)
151 #elif !defined(VISP_BUILD_SHARED_LIBS) 154 void dummy_vpProjectionDisplay(){};
void init(vpImage< unsigned char > &I, int winx=-1, int winy=-1, const std::string &title="")
void display(vpImage< unsigned char > &I, const vpHomogeneousMatrix &cextMo, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &color, const bool &displayTraj=false, const unsigned int thickness=1)
Implementation of an homogeneous matrix and operations on such kind of matrices.
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 ...
void resize(const unsigned int nrows, const unsigned int ncols, const bool flagNullify=true, const bool recopy_=true)
Class to define colors available for display functionnalities.
virtual void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, const unsigned int thickness=1)=0
unsigned int getRows() const
void track(const vpHomogeneousMatrix &cMo)
vpHomogeneousMatrix inverse() const
static const vpColor green
static int internalView()
static void displayArrow(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1)
Class that defines what is a generic geometric feature.
Generic class defining intrinsic camera parameters.
void resize(const unsigned int h, const unsigned int w)
resize the image : Image initialization
static int externalView()
void insert(vpForwardProjection &fp)
static void displayCircle(const vpImage< unsigned char > &I, const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1)
void setWorldCoordinates(const double oX, const double oY, const double oZ)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
double get_Z() const
Get the point Z coordinate in the camera frame.
void displayCamera(vpImage< unsigned char > &I, const vpHomogeneousMatrix &cextMo, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const unsigned int thickness=1)
static const vpColor blue