37 FRect r_fixed( 40,85,130,155 );
40 CPolyline pol{ std::vector<Point2d>{ {30,20}, {140,45}, {110,110}, {20,65} } };
54 for(
int i=0; i<nbim; i++ )
60 li.
draw( myImg, color_green );
68 r_fixed.draw( myImg, color_green );
70 cir_fixed.draw( myImg, color_green );
86 std::ostringstream oss;
87 oss <<
"showcase1_" << std::setfill(
'0') << std::setw(2) <<i <<
".svg";
88 myImg.write( oss.str() );
A circle.
Definition: homog2d.hpp:378
Homogr_< HOMOG2D_INUMTYPE > Homogr
Default homography (3x3 matrix) type, uses double as numerical type.
Definition: homog2d.hpp:12382
Segment seg
Definition: homog2d_test.cpp:4033
#define M_PI
Definition: homog2d.hpp:235
A 2D homography, defining a planar transformation.
Definition: homog2d.hpp:369
FRect rect
Definition: homog2d_test.cpp:4038
void draw(img::Image< img::SvgImage > &im, img::DrawParams dp=img::DrawParams()) const
SVG draw function.
Definition: homog2d.hpp:4414
auto im_w
Definition: showcase19.cpp:14
void draw(img::Image< cv::Mat > &, img::DrawParams dp=img::DrawParams()) const
Definition: homog2d.hpp:11868
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
void drawIntersect(IM &img, const T1 &t1, const T2 &t2)
Definition: showcase1.cpp:14
Line2d li
Definition: homog2d_test.cpp:4035
auto im_h
Definition: showcase19.cpp:13
Point2d_< HOMOG2D_INUMTYPE > Point2d
Default point type, uses double as numerical type.
Definition: homog2d.hpp:12379
bool isInside(const Circle_< FPT2 > &other) const
Returns true if circle is inside other circle.
Definition: homog2d.hpp:3403
A Flat Rectangle, modeled by its two opposite points.
Definition: homog2d.hpp:379
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
A line segment, oriented (OSegment_) or not (Segment_). Holds the two points.
Definition: homog2d.hpp:366
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
DrawParams color_red
Definition: showcase1.cpp:11
Polyline, will be instanciated either as OPolyline_ (open polyline) or CPolyline_.
Definition: homog2d.hpp:364
void translate(TX dx, TY dy)
Translate Circle.
Definition: homog2d.hpp:3366
Circle cir
Definition: homog2d_test.cpp:4036
Base class, will be instanciated as Point2d_ or Line2d_.
Definition: homog2d.hpp:365