9#ifndef CEnhancedMetaFile_H
10#define CEnhancedMetaFile_H
45 const std::string &targetFileName,
87 unsigned int width = 1,
101 const std::string &str,
113 const std::string &fontName,
116 bool italic =
false );
150 unsigned int width = 1 );
167 float confIntervalStds = 2,
169 unsigned int width = 1,
170 int nEllipsePoints = 20
174 int x1=0,y1=0,x2=0,y2=0;
180 cov2D->eigenVectors(eigVec,eigVal);
186 for (i=0,ang=0;i<nEllipsePoints;i++,ang+= (
M_2PI/(nEllipsePoints-1)))
188 float ccos = cos(ang);
189 float ssin = sin(ang);
191 x2 =
round( mean_x + confIntervalStds * (ccos * M(0,0) + ssin * M(1,0)) );
192 y2 =
round( mean_y + confIntervalStds * (ccos * M(0,1) + ssin * M(1,1)) );
195 line( x1, y1,x2, y2,color,width );
202 std::cout <<
"Covariance matrix leading to error is:" << std::endl << *cov2D << std::endl; \
A matrix of dynamic size.
This virtual class defines the interface of any object accepting drawing primitives on it.
TPenStyle
Definition of pen styles.
virtual void drawImage(int x, int y, const utils::CImage &img)
Draws an image as a bitmap at a given position.
A class for storing images as grayscale or RGB bitmaps.
int round(const T value)
Returns the closer integer (int) to x.
#define MRPT_OVERRIDE
C++11 "override" for virtuals:
#define MRPT_END_WITH_CLEAN_UP(stuff)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.