44 auto func = [&](
int i)
49 std::function<img::DrawParams(int)> f(func);
51 for(
int i=0; i<nbim; i++ )
58 std::ostringstream ossa;
60 ossa <<
"showcase19_" << std::setfill(
'0') << std::setw(2) << i <<
".svg";
61 im.write( ossa.str() );
void draw(Data &data)
Definition: precision_test_opencv.cpp:184
auto im_w
Definition: showcase19.cpp:14
std::vector< Segment > generateSegments(int nbSegs)
Definition: showcase19.cpp:17
Draw parameters, independent of back-end library.
Definition: homog2d.hpp:514
auto im_h
Definition: showcase19.cpp:13
std::vector< img::Color > genRandomColors(size_t nb, int minval=20, int maxval=250)
Helper function, will generate a vector of nb random RGB colors.
Definition: homog2d.hpp:453
img::Image< img::SvgImage > im(300, 400)
DrawParams & showPoints(bool b=true)
Set or unset the drawing of points (useful only for Segment_ and Polyline_)
Definition: homog2d.hpp:621
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
size_t nbSegs(const base::PolylineBase< PLT, FPT > &pl)
Returns the number of segments (free function)
Definition: homog2d.hpp:9927
DrawParams & setColor(uint8_t r, uint8_t g, uint8_t b)
Definition: homog2d.hpp:605