64 void setPixel(
int x,
int y,
size_t color)
override;
68 size_t getWidth()
const override {
return 640; }
109 int x0,
int y0,
const std::string& str,
120 const std::string& fontName,
int fontSize,
bool bold =
false,
121 bool italic =
false);
138 float scale)
override 154 unsigned int width = 1);
173 float confIntervalStds = 2,
175 unsigned int width = 1,
int nEllipsePoints = 20)
178 int x1 = 0, y1 = 0, x2 = 0, y2 = 0;
184 cov2D->eigenVectors(eigVec, eigVal);
190 for (i = 0, ang = 0; i < nEllipsePoints;
191 i++, ang += (
M_2PI / (nEllipsePoints - 1)))
193 float ccos = cos(ang);
194 float ssin = sin(ang);
197 mean_x + confIntervalStds * (ccos * M(0, 0) + ssin * M(1, 0)));
199 mean_y + confIntervalStds * (ccos * M(0, 1) + ssin * M(1, 1)));
201 if (i > 0)
line(x1, y1, x2, y2, color, width);
208 std::cout <<
"Covariance matrix leading to error is:" << std::endl
209 << *cov2D << std::endl;);
This virtual class defines the interface of any object accepting drawing primitives on it...
TPenStyle
Definition of pen styles.
#define MRPT_END_WITH_CLEAN_UP(stuff)
virtual void drawImage(int x, int y, const mrpt::img::CImage &img)
Draws an image as a bitmap at a given position.
This template class provides the basic functionality for a general 2D any-size, resizable container o...
A class for storing images as grayscale or RGB bitmaps.
int round(const T value)
Returns the closer integer (int) to x.