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 More... | |
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 More... | |
TiltedQuad (const utils::Point32f *ps, cv::ImageRegion r) | |
creates a TiltedQuad instance with given 4D array of points and image region More... | |
utils::Point32f & | operator[] (int i) |
accesses the i-th corner point More... | |
const utils::Point32f & | operator[] (int i) const |
accesses the i-th corner point (const) More... | |
cv::ImageRegion | getRegion () const |
returns the associated image region (always const) More... | |
void | setRegion (cv::ImageRegion region) |
sets the image region (this is usually not used explicitly) More... | |
operator bool () const | |
returns whether the image region had been set before More... | |
const utils::Point32f * | data () const |
returns the internal utils::Point-data pointer More... | |
Private Attributes | |
utils::Point32f | ps [4] |
list of points (usually sorted in clock-wise order) More... | |
cv::ImageRegion | region |
associated image region More... | |
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
|
inline |
creates a null-instance
|
inline |
creates a TiltedQuad instance with given 4 corners and given ImageRegion
|
inline |
creates a TiltedQuad instance with given 4D array of points and image region
|
inline |
returns the internal utils::Point-data pointer
|
inline |
returns the associated image region (always const)
|
inline |
returns whether the image region had been set before
|
inline |
accesses the i-th corner point
|
inline |
accesses the i-th corner point (const)
|
inline |
sets the image region (this is usually not used explicitly)
|
private |
list of points (usually sorted in clock-wise order)
|
private |
associated image region