22 for(
int i=0; i<nb_img; i++ )
28 std::to_string(out_idx) +
": " + msg +
": " + std::to_string(i+1) +
"/" + std::to_string(nb_img),
29 cv::Point2i( 20, 40 ), 0, 0.6, cv::Scalar( 50,0,0 ), 1
32 drawText(
im, std::to_string(out_idx) +
": " + msg +
": " + std::to_string(i+1) +
"/" + std::to_string(nb_img),
Point2d(20,40) );
41 std::ostringstream oss;
42 oss <<
"showcase12_" << std::setfill(
'0') << std::setw(2) << out_idx++ <<
".svg";
43 im.write( oss.str() );
Point2d_< FPT > getPoint(size_t idx) const
Returns one point of the polyline.
Definition: homog2d.hpp:6320
void drawText(img::Image< U > &im, std::string str, Point2d_< FPT > pt, img::DrawParams dp=img::DrawParams())
Free function, draws text str at position pt.
Definition: homog2d.hpp:11260
void draw(Data &data)
Definition: precision_test_opencv.cpp:184
Line2d_< HOMOG2D_INUMTYPE > Line2d
Default line type, uses double as numerical type.
Definition: homog2d.hpp:12376
Draw parameters, independent of back-end library.
Definition: homog2d.hpp:514
void rotate(Rotate, const Point2d_< FPT2 > &)
Rotates the polyline by either 90°, 180°, 270° (-90°) at point refpt.
Definition: homog2d.hpp:7265
Point2d_< HOMOG2D_INUMTYPE > Point2d
Default point type, uses double as numerical type.
Definition: homog2d.hpp:12379
img::Image< img::SvgImage > im(300, 400)
DrawParams & setColor(uint8_t r, uint8_t g, uint8_t b)
Definition: homog2d.hpp:605
void draw(img::Image< img::SvgImage > &, img::DrawParams dp=img::DrawParams()) const
Draw Polyline (SVG implementation)
Definition: homog2d.hpp:12302