21 for(
int i=0; i<nbim; i++ )
24 int nbpts = 1.0*rand() / RAND_MAX * (nbpts_max-nbpts_min) + nbpts_min;
25 std::vector<Point2d> vec(nbpts);
26 auto it = std::begin(vec);
27 for(
auto j=0; j<nbpts; j++ )
29 1.0*rand() / RAND_MAX * (cmax-cmin) + cmin,
30 1.0*rand() / RAND_MAX * (cmax-cmin) + cmin
46 std::ostringstream oss;
47 oss <<
"showcase13_" << std::setfill(
'0') << std::setw(2) << i <<
".svg";
48 im.write( oss.str() );
A circle.
Definition: homog2d.hpp:378
void draw(Data &data)
Definition: precision_test_opencv.cpp:184
auto getBmPoint(const T &t)
Return Bottom-most point of container holding points.
Definition: homog2d.hpp:6915
Draw parameters, independent of back-end library.
Definition: homog2d.hpp:514
void draw(img::Image< cv::Mat > &, img::DrawParams=img::DrawParams()) const
Draw Circle (Opencv implementation)
Definition: homog2d.hpp:11907
auto getTmPoint(const T &t)
Return Top-most point of container.
Definition: homog2d.hpp:6940
Point2d_< HOMOG2D_INUMTYPE > Point2d
Default point type, uses double as numerical type.
Definition: homog2d.hpp:12379
void set(const Point2d_< PT > ¢er)
Set circle center point, radius unchanged.
Definition: homog2d.hpp:3297
img::Image< img::SvgImage > im(300, 400)
DrawParams & setPointStyle(PtStyle ps)
Definition: homog2d.hpp:585
auto getLmPoint(const T &t)
Return Left-most point of container as a pair holding:
Definition: homog2d.hpp:6987
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
auto getRmPoint(const T &t)
Return Right-most point of container holding points.
Definition: homog2d.hpp:7028
CPolyline_< FPT > convexHull(const base::PolylineBase< CT, FPT > &input)
Compute Convex Hull of a Polyline (free function)
Definition: homog2d.hpp:11536
FRect_< HOMOG2D_INUMTYPE > getBB(const T &t)
Return Bounding Box of primitive or container holding primitives (free function)
Definition: homog2d.hpp:10312
DrawParams & setColor(uint8_t r, uint8_t g, uint8_t b)
Definition: homog2d.hpp:605
Circle cir
Definition: homog2d_test.cpp:4036