|
| Rectangle () |
|
template<typename TL , typename TT , typename TR , typename TB > |
| Rectangle (TL l, TT t, TR r, TB b) |
|
template<typename TLT , typename TRB > |
| Rectangle (const Point< TLT > <, const Point< TRB > &rb) |
|
template<typename TRB > |
| Rectangle (const Point< TRB > &rb) |
|
template<class TR , template< class > class TRectangle> |
| Rectangle (const TRectangle< TR > &r) |
|
template<class TR > |
| Rectangle (const cv::Rect_< TR > &r) |
|
| ~Rectangle () |
|
template<class TR , template< class > class TRectangle> |
| operator TRectangle< TR > () const |
|
template<class TR > |
| operator cv::Rect_< TR > () const |
|
template<typename TR > |
Rectangle< T > & | operator= (const Rectangle< TR > &r) |
|
template<typename TR > |
Rectangle< T > & | operator= (const cv::Rect_< TR > &r) |
|
template<typename TL > |
Rectangle< T > & | SetLeft (const TL &l) |
|
template<typename TT > |
Rectangle< T > & | SetTop (const TT &t) |
|
template<typename TR > |
Rectangle< T > & | SetRight (const TR &r) |
|
template<typename TB > |
Rectangle< T > & | SetBottom (const TB &b) |
|
template<typename TP > |
Rectangle< T > & | SetTopLeft (const Point< TP > &topLeft) |
|
template<typename TP > |
Rectangle< T > & | SetTopRight (const Point< TP > &topRight) |
|
template<typename TP > |
Rectangle< T > & | SetBottomLeft (const Point< TP > &bottomLeft) |
|
template<typename TP > |
Rectangle< T > & | SetBottomRight (const Point< TP > &bottomRight) |
|
T | Left () const |
|
T | Top () const |
|
T | Right () const |
|
T | Bottom () const |
|
Point< T > | TopLeft () const |
|
Point< T > | TopRight () const |
|
Point< T > | BottomLeft () const |
|
Point< T > | BottomRight () const |
|
T | Width () const |
|
T | Height () const |
|
T | Area () const |
|
bool | Empty () const |
|
Point< T > | Size () const |
|
Point< T > | Center () const |
|
template<typename TX , typename TY > |
bool | Contains (TX x, TY y) const |
|
template<typename TP > |
bool | Contains (const Point< TP > &p) const |
|
template<typename TL , typename TT , typename TR , typename TB > |
bool | Contains (TL l, TT t, TR r, TB b) const |
|
template<typename TR > |
bool | Contains (const Rectangle< TR > &r) const |
|
template<typename TP > |
Rectangle< T > & | Shift (const Point< TP > &shift) |
|
template<typename TX , typename TY > |
Rectangle< T > & | Shift (TX shiftX, TY shiftY) |
|
template<typename TP > |
Rectangle< T > | Shifted (const Point< TP > &shift) const |
|
template<typename TX , typename TY > |
Rectangle< T > | Shifted (TX shiftX, TY shiftY) const |
|
template<typename TB > |
Rectangle< T > & | AddBorder (TB border) |
|
template<typename TR > |
Rectangle< T > | Intersection (const Rectangle< TR > &r) const |
|
template<typename TP > |
Rectangle< T > & | operator&= (const Point< TP > &p) |
|
template<typename TR > |
Rectangle< T > & | operator&= (const Rectangle< TR > &r) |
|
template<typename TP > |
Rectangle< T > & | operator|= (const Point< TP > &p) |
|
template<typename TR > |
Rectangle< T > & | operator|= (const Rectangle< TR > &r) |
|
template<typename TR > |
Rectangle< T > & | operator+= (const Rectangle< TR > &r) |
|
bool | Overlaps (const Rectangle< T > &r) const |
|
template<typename T>
struct Simd::Rectangle< T >
The Rectangle structure defines the positions of left, top, right and bottom sides of a rectangle.
In order to have mutual conversion with OpenCV rectangle you have to define macro SIMD_OPENCV_ENABLE:
#include "opencv2/core/core.hpp"
#define SIMD_OPENCV_ENABLE
#include "Simd/SimdRectangle.hpp"
int main()
{
typedef Simd::Rectangle<ptrdiff_t> Rect;
Rect rect = cv::Rect(10, 10, 20, 20);
cv::Rect cvRect = Rect(10, 10, 30, 30);
return 0;
}
Related Functions.