44 #include <visp3/core/vpConfig.h> 45 #include <visp3/core/vpTime.h> 46 #include <visp3/gui/vpPlot.h> 51 for(
int i = 0; i < n; ++i)
52 for(
int j = 0; j < m; ++j)
53 M[i][j] = (2.*rand())/RAND_MAX -1;
60 for(
int i = 0; i < n; ++i)
61 M[i] = (2.*rand())/RAND_MAX -1;
65 #ifdef VISP_HAVE_DISPLAY 70 QPlot(
int graphNum,
int total, std::vector<std::string> legend)
72 P =
new vpPlot(graphNum, 700, 700, 100, 200,
"Resolution time");
74 for(
int i = 0; i < graphNum; ++i)
83 P->
setLegend(i, 0,
"without " + legend[2*i+1]);
88 void plot(
int g,
int c,
int i,
double t)
104 class VISP_EXPORT QPPlot
107 QPPlot(
int,
int , std::vector<std::string> ) {}
108 void plot(
int ,
int ,
int ,
double ) {}
Implementation of a matrix and operations on matrices.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
QPlot(int graphNum, int total, std::vector< std::string > legend)
vpImage< unsigned char > I
void setLegend(unsigned int graphNum, unsigned int curveNum, const std::string &legend)
VISP_EXPORT double measureTimeMs()
void initRange(unsigned int graphNum, double xmin, double xmax, double ymin, double ymax)
void setTitle(unsigned int graphNum, const std::string &title)
void plot(unsigned int graphNum, unsigned int curveNum, double x, double y)
void plot(int g, int c, int i, double t)
void setUnitY(unsigned int graphNum, const std::string &unity)
void initGraph(unsigned int graphNum, unsigned int curveNbr)
Implementation of column vector and the associated operations.
void setGraphThickness(unsigned int graphNum, unsigned int thickness)
This class enables real time drawing of 2D or 3D graphics. An instance of the class open a window whi...
void setColor(unsigned int graphNum, unsigned int curveNum, vpColor color)
static const vpColor blue