14 auto Hdraw =
Homogr().setScale(30).addTranslation(10,10);
23 for(
int i=0; i<nbim; i++ )
25 auto angle = i*360./nbim;
27 auto x1 = std::cos(angle_r)*k;
28 auto y1 = std::sin(angle_r)*k;
42 (Hdraw * p0).
draw(im1, drawparams );
43 (Hdraw * p1).
draw(im1, drawparams );
44 (Hdraw * p2).
draw(im1, drawparams );
46 std::ostringstream ossa;
47 ossa <<
"showcase18_" << std::setfill(
'0') << std::setw(2) << i <<
".svg";
48 im1.write( ossa.str() );
Homogr_< HOMOG2D_INUMTYPE > Homogr
Default homography (3x3 matrix) type, uses double as numerical type.
Definition: homog2d.hpp:12382
void draw(Data &data)
Definition: precision_test_opencv.cpp:184
#define M_PI
Definition: homog2d.hpp:235
Draw parameters, independent of back-end library.
Definition: homog2d.hpp:514
void setParallelogram(const Point2d_< FPT1 > &pt1, const Point2d_< FPT2 > &pt2, const Point2d_< FPT3 > &pt3)
Build a parallelogram (4 points) from 3 points.
Definition: homog2d.hpp:6765
HOMOG2D_INUMTYPE angle(const Ellipse_< FPT > &ell)
Return angle of ellipse (free function)
Definition: homog2d.hpp:10993
DrawParams & setPointStyle(PtStyle ps)
Definition: homog2d.hpp:585
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
DrawParams & setColor(uint8_t r, uint8_t g, uint8_t b)
Definition: homog2d.hpp:605
Polyline, will be instanciated either as OPolyline_ (open polyline) or CPolyline_.
Definition: homog2d.hpp:364
Base class, will be instanciated as Point2d_ or Line2d_.
Definition: homog2d.hpp:365