Image Component Library (ICL)
|
Utility class that represents a tilted quad in an image. More...
#include <TiltedQuad.h>
Public Member Functions | |
TiltedQuad () | |
creates a null-instance | |
TiltedQuad (const utils::Point32f &a, const utils::Point32f &b, const utils::Point32f &c, const utils::Point32f &d, const cv::ImageRegion r) | |
creates a TiltedQuad instance with given 4 corners and given ImageRegion | |
TiltedQuad (const utils::Point32f *ps, cv::ImageRegion r) | |
creates a TiltedQuad instance with given 4D array of points and image region | |
utils::Point32f & | operator[] (int i) |
accesses the i-th corner point | |
const utils::Point32f & | operator[] (int i) const |
accesses the i-th corner point (const) | |
cv::ImageRegion | getRegion () const |
returns the associated image region (always const) | |
void | setRegion (cv::ImageRegion region) |
sets the image region (this is usually not used explicitly) | |
operator bool () const | |
returns whether the image region had been set before | |
const utils::Point32f * | data () const |
returns the internal utils::Point-data pointer | |
Private Attributes | |
utils::Point32f | ps [4] |
list of points (usually sorted in clock-wise order) | |
cv::ImageRegion | region |
associated image region |
Utility class that represents a tilted quad in an image.
A tilted quad is represented by It's for corner points The class provides access to these points using the index operator
icl::markers::TiltedQuad::TiltedQuad | ( | ) | [inline] |
creates a null-instance
icl::markers::TiltedQuad::TiltedQuad | ( | const utils::Point32f & | a, |
const utils::Point32f & | b, | ||
const utils::Point32f & | c, | ||
const utils::Point32f & | d, | ||
const cv::ImageRegion | r | ||
) | [inline] |
creates a TiltedQuad instance with given 4 corners and given ImageRegion
icl::markers::TiltedQuad::TiltedQuad | ( | const utils::Point32f * | ps, |
cv::ImageRegion | r | ||
) | [inline] |
creates a TiltedQuad instance with given 4D array of points and image region
const utils::Point32f* icl::markers::TiltedQuad::data | ( | ) | const [inline] |
returns the internal utils::Point-data pointer
cv::ImageRegion icl::markers::TiltedQuad::getRegion | ( | ) | const [inline] |
returns the associated image region (always const)
icl::markers::TiltedQuad::operator bool | ( | ) | const [inline] |
returns whether the image region had been set before
utils::Point32f& icl::markers::TiltedQuad::operator[] | ( | int | i | ) | [inline] |
accesses the i-th corner point
const utils::Point32f& icl::markers::TiltedQuad::operator[] | ( | int | i | ) | const [inline] |
accesses the i-th corner point (const)
void icl::markers::TiltedQuad::setRegion | ( | cv::ImageRegion | region | ) | [inline] |
sets the image region (this is usually not used explicitly)
utils::Point32f icl::markers::TiltedQuad::ps[4] [private] |
list of points (usually sorted in clock-wise order)
associated image region