41#include <visp3/core/vpConfig.h>
42#if defined(VISP_HAVE_DISPLAY)
45#include <visp3/core/vpCameraParameters.h>
46#include <visp3/core/vpMath.h>
47#include <visp3/core/vpMeterPixelConversion.h>
48#include <visp3/core/vpPoint.h>
51#include <visp3/core/vpColor.h>
52#include <visp3/core/vpImage.h>
54#include <visp3/core/vpDisplay.h>
56#include <visp3/gui/vpProjectionDisplay.h>
66 listFp.push_back(&fp);
81 dIcam.
init(Icam, 100, 100);
85 dIext.
init(Iext, 400, 100);
95 const bool &displayTraj,
unsigned int thickness)
98 for (std::list<vpForwardProjection *>::const_iterator it = listFp.begin(); it != listFp.end(); ++it) {
100 fp->
display(I, cextMo, cam, color, thickness);
104 for (
unsigned int i = 0; i < traj.
getRows(); ++i)
111 const unsigned int n = traj.
getRows();
112 traj.
resize(n + 1, 2,
false);
119 unsigned int thickness)
148#elif !defined(VISP_BUILD_SHARED_LIBS)
151void dummy_vpProjectionDisplay(){};
void resize(unsigned int nrows, unsigned int ncols, bool flagNullify=true, bool recopy_=true)
unsigned int getRows() const
Generic class defining intrinsic camera parameters.
Class to define RGB colors available for display functionalities.
static const vpColor blue
static const vpColor green
void init(vpImage< unsigned char > &I, int win_x=-1, int win_y=-1, const std::string &win_title="")
static void displayCircle(const vpImage< unsigned char > &I, const vpImageCircle &circle, const vpColor &color, bool fill=false, unsigned int thickness=1)
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.
virtual void display(const vpImage< unsigned char > &I, const vpCameraParameters &cam, const vpColor &color=vpColor::green, unsigned int thickness=1)=0
void track(const vpHomogeneousMatrix &cMo)
Implementation of an homogeneous matrix and operations on such kind of matrices.
vpHomogeneousMatrix inverse() const
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Definition of the vpImage class member functions.
void resize(unsigned int h, unsigned int w)
resize the image : Image initialization
static void convertPoint(const vpCameraParameters &cam, const double &x, const double &y, double &u, double &v)
double get_Z() const
Get the point cZ coordinate in the camera frame.
void setWorldCoordinates(double oX, double oY, double oZ)
void displayCamera(vpImage< unsigned char > &I, const vpHomogeneousMatrix &cextMo, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, unsigned int thickness=1)
static int externalView()
static int internalView()
void display(vpImage< unsigned char > &I, const vpHomogeneousMatrix &cextMo, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &color, const bool &displayTraj=false, unsigned int thickness=1)
void insert(vpForwardProjection &fp)