15 std::vector<Point2d> vpts{
29 auto Hdraw =
Homogr().setScale(30).addTranslation(10,30);
37 for(
int i=0; i<n; i++ )
41 auto pl2 = Hdraw * pl;
45 auto pts = pl.intersects(li);
46 auto pts2 = Hdraw * pts.get();
48 std::ostringstream ossa;
49 ossa <<
"showcase3_" << std::setfill(
'0') << std::setw(2) <<i <<
".svg";
50 img2.write( ossa.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
#define M_PI
Definition: homog2d.hpp:235
A 2D homography, defining a planar transformation.
Definition: homog2d.hpp:369
Draw parameters, independent of back-end library.
Definition: homog2d.hpp:514
Line2d li
Definition: homog2d_test.cpp:4035
Hmatrix_ & addTranslation(T tx, T ty)
Adds a translation tx,ty to the matrix.
Definition: homog2d.hpp:1830
void set(const CONT &vec)
Set from vector/array/list of points (discards previous points)
Definition: homog2d.hpp:6461
Hmatrix_ & addRotation(T theta)
Adds a rotation with an angle theta (radians) to the matrix.
Definition: homog2d.hpp:1854
void clear()
Clear all (does not change the "open/close" status).
Definition: homog2d.hpp:6375
Opaque data structure, will hold the image type, depending on back-end library. This type is the one ...
Definition: homog2d.hpp:712
Polyline, will be instanciated either as OPolyline_ (open polyline) or CPolyline_.
Definition: homog2d.hpp:364
Base class, will be instanciated as Point2d_ or Line2d_.
Definition: homog2d.hpp:365