13 std::vector<Point2d> vpts{
22 auto H1 =
Homogr().addTranslation(7,6).addScale(15);
23 auto H2 =
Homogr().addRotation(0.8).addScale(60).addTranslation(280,100);
30 std::vector<CPolyline> v_poly1, v_poly2;
31 v_poly1.push_back( pol1 );
32 v_poly2.push_back( pol2 );
36 im.write(
"showcase22_00.svg" );
38 for(
int i=1; i<n; i++ )
42 for(
int j=0; j<(int)v_poly1.size(); j++ )
48 v_poly1.push_back( v_poly1.at(i-1).getOffsetPoly( delta ) );
49 v_poly2.push_back( v_poly2.at(i-1).getOffsetPoly( -delta ) );
53 auto segs1= v_poly1.back().getSegs();
54 auto segs2= v_poly2.back().getSegs();
55 for (
const auto&
seg: segs2 )
60 std::ostringstream oss;
61 oss <<
"showcase22_" << std::setfill(
'0') << std::setw(2) << i <<
".svg";
62 im.write( oss.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
Segment seg
Definition: homog2d_test.cpp:4033
Draw parameters, independent of back-end library.
Definition: homog2d.hpp:514
img::Image< img::SvgImage > im(300, 400)
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
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
Polyline, will be instanciated either as OPolyline_ (open polyline) or CPolyline_.
Definition: homog2d.hpp:364
auto getLine() const
Returns supporting line.
Definition: homog2d.hpp:5252