Overview & Basics
- How to draw “stuff”?
The
Painterclass supports drawing onto existing images or a plain canvas. After setting up the canvas, use thePainter.draw_...methods.- Which “stuff” can be drawn?
Draws a circular arc.
Draws an arrow.
Draws a single 2D bounding box.
Draws a circle.
Draws an ellipse.
Draws a color gradient.
Draws a grid.
Draws the estimated line of horizon.
Draws an image onto the canvas.
Draws a line.
Draws a single marker/keypoint.
Draws multiple (similarly styled) markers/keypoints.
Draws a polygon.
Draws a rectangle.
Draws single- or multi-line text.
Draws a single- or multi-line text box.
Draws multiple (similarly styled) trajectories.
Draws a single trajectory.
Visualizes a coordinate system reference frame.
Resets the latest clip region.
Establishes a circular clip region for the current canvas.
Establishes a rectangular clip region for the current canvas.
- What about visualizations besides drawing?
Besides drawing,
viren2dalso provides various color maps and colorization techniques to inspect and represent data, such as depth measurements, topographic data, gradient or flow fields, etc.Additionally, the
ImageBufferprovides some basic image processing functionalities, e.g. to blend/overlay images,pixelate()regions, some general color space conversions, etc. Note, however, that these functionalities are only provided for user convenience and are not optimized towards high-speed, i.e.viren2ddoes not use OpenMP, oneTBB, AVX, Neon or any other multi-threading/multi-processing extensions.- Which coordinate system is used?
All coordinates assume an image coordinate system, where the origin
(0, 0)is at the top left corner, the positive \(x\) axis is pointing right and the positive \(y\) axis is pointing down.- How to specify angles?
Unless stated otherwise in the corresponding API documentation, all angle measurements are assumed to be in degrees. The rotation direction for positive angles is from the positive \(x\) axis towards the positive \(y\) axis.