2 #include <visp/vpDisplayGDI.h>
3 #include <visp/vpDisplayX.h>
4 #include <visp/vpImageIo.h>
5 #include <visp/vpMbEdgeTracker.h>
15 #if defined(VISP_HAVE_X11)
16 vpDisplayX display(I,100,100,
"Model-based edge tracker");;
17 #elif defined(VISP_HAVE_GDI)
18 vpDisplayGDI display(I,100,100,
"Model-based edge tracker");;
20 std::cout <<
"No image viewer is available..." << std::endl;
void setMovingEdge(const vpMe &me)
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
void track(const vpImage< unsigned char > &I)
void setMaskNumber(const unsigned int &a)
Display for windows using GDI (available on any windows 32 platform).
void setSampleStep(const double &s)
void setMu2(const double &mu2)
void setNbTotalSample(const int &nb)
Define the X11 console to display images.
static const vpColor none
Contains predetermined masks for sites and holds moving edges tracking parameters.
Make the complete tracking of an object by using its CAD model.
static int wait(double t0, double t)
void loadConfigFile(const std::string &configFile)
static void flush(const vpImage< unsigned char > &I)
void initPersProjWithoutDistortion(const double px, const double py, const double u0, const double v0)
virtual void setNearClippingDistance(const double &dist)
void setMaskSize(const unsigned int &a)
static void display(const vpImage< unsigned char > &I)
Generic class defining intrinsic camera parameters.
virtual void setFarClippingDistance(const double &dist)
virtual void initClick(const vpImage< unsigned char > &I, const std::string &initFile, const bool displayHelp=false)
static void displayFrame(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness=1)
virtual void setOgreVisibilityTest(const bool &v)
virtual void getCameraParameters(vpCameraParameters &cam) const
void setThreshold(const double &t)
void display(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, const vpColor &col, const unsigned int thickness=1, const bool displayFullModel=false)
virtual unsigned int getClipping() const
virtual bool getClick(bool blocking=true)=0
virtual void setCameraParameters(const vpCameraParameters &cam)
void setDisplayFeatures(const bool displayF)
void loadModel(const std::string &cad_name)
void setRange(const unsigned int &r)
virtual void setClipping(const unsigned int &flags)
static void read(vpImage< unsigned char > &I, const char *filename)
void getPose(vpHomogeneousMatrix &cMo) const
void setMu1(const double &mu1)