39#include <visp3/core/vpConfig.h>
40#include <visp3/core/vpTime.h>
41#include <visp3/gui/vpPlot.h>
43#ifndef DOXYGEN_SHOULD_SKIP_THIS
44VISP_NAMESPACE_ADDRESSING
vpMatrix randM(
int n,
int m)
46 VISP_NAMESPACE_ADDRESSING
vpMatrix M(n, m);
47 for (
int i = 0;
i < n; ++
i)
48 for (
int j = 0;
j < m; ++
j)
49 M[i][j] = (2. * rand()) / RAND_MAX - 1;
56 for (
int i = 0;
i < n; ++
i)
57 M[i] = (2. * rand()) / RAND_MAX - 1;
61#ifdef VISP_HAVE_DISPLAY
65 virtual ~QPlot() {
delete P; }
66 QPlot(
int graphNum,
int total, std::vector<std::string> legend)
68 P =
new VISP_NAMESPACE_ADDRESSING vpPlot(graphNum, 700, 700, 100, 200,
"Resolution time");
70 for (
int i = 0;
i < graphNum; ++
i) {
72 P->setColor(i, 0, VISP_NAMESPACE_ADDRESSING
vpColor::red);
74 P->setGraphThickness(i, 2);
75 P->initRange(i, 0, total, 0, 0.1);
77 P->setTitle(i, legend[2 * i]);
78 P->setLegend(i, 0,
"without " + legend[2 * i + 1]);
79 P->setLegend(i, 1, legend[2 * i + 1]);
85 void wait() { P->I.display->getClick(); }
86 VISP_NAMESPACE_ADDRESSING vpPlot *P;
90 QPlot(
const QPlot &qplot);
93class VISP_EXPORT QPPlot
96 QPPlot(
int,
int, std::vector<std::string>) { }
97 void plot(
int,
int,
int,
double) { }
Implementation of column vector and the associated operations.
static const vpColor blue
Implementation of a matrix and operations on matrices.
VISP_EXPORT double measureTimeMs()
VISP_EXPORT int wait(double t0, double t)