|
zxing-cpp v3.0
|
#include <Quadrilateral.h>
Inherits std::array< T >.
Public Types | |
| using | Point = T |
Public Member Functions | |
| Quadrilateral ()=default | |
| Quadrilateral (T tl, T tr, T br, T bl) | |
| template<typename U> | |
| Quadrilateral (PointT< U > tl, PointT< U > tr, PointT< U > br, PointT< U > bl) | |
| constexpr Point | topLeft () const noexcept |
| constexpr Point | topRight () const noexcept |
| constexpr Point | bottomRight () const noexcept |
| constexpr Point | bottomLeft () const noexcept |
| double | orientation () const |
A simple class representing a quadrilateral defined by its four corner points.
It represents a quadrilateral defined by its four corner points: top-left, top-right, bottom-right, and bottom-left. Those points are relative to the detected symbol i.e. topLeft() will return the coordinates of the top-left corner of the symbol. If e.g. the symbol is rotated 180 degrees, the top-left corner will be the one that is at the bottom-right position in the image.
| using ZXing::Quadrilateral< T >::Point = T |
|
default |
|
inline |
|
inline |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inline |
Return the orientation of the quadrilateral in radians, where 0 means the horizontal center line is parallel to the x-axis and positive values mean a clockwise rotation.