VAT  3.0
Video Analysis Tool
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Rectangle< T > Class Template Reference

Public Member Functions

 Rectangle (T x, T y, T w, T h)
 
void initRectangle (T x, T y, T w, T h)
 
void initRectangleReliability (T r)
 
RectanglecopyRectangle ()
 
RectanglemergeRectangle (Rectangle *rect)
 
void mergeRectangle (Rectangle &r)
 
void absorbRectangle (Rectangle *r)
 
void absorbRectangle (Rectangle &r)
 
double rectangleDistance (Rectangle *r)
 
double rectangleGravityDistance (Rectangle *r)
 
RectanglerectangleIntersection (Rectangle *r)
 
RectanglerectangleUnion (Rectangle *r)
 
double rectangleIntersectRatio (Rectangle *r)
 
double rectangleIntersectRatioStrict (Rectangle *r)
 
bool rectangleInRectangle (Rectangle *r)
 
double rectangleIntersectionArea (Rectangle *r)
 
double rectangleArea ()
 
int getPositionRelativeToCamera (SceneModel *smodel)
 
int getPositionRelativeToCameraOld (SceneModel *smodel)
 
void setEstimated3DPosition (SceneModel *smodel, point3D< double > &p, int position)
 
void setPositionAtCenterBottom (SceneModel *smodel, point3D< double > &p)
 
bool rectangleInside (Rectangle &r)
 
bool thereIsIntersection (Rectangle &r)
 
void substractRectangles (std::vector< Rectangle > &toSubstract, std::deque< Rectangle > &results)
 
bool pointInRectangle (T p_x, T p_y)
 
bool operator== (Rectangle &r)
 

Static Public Member Functions

static RectanglemergeRectangles (Rectangle *r1, Rectangle *r2)
 
static void mergeRectangles (Rectangle &r1, Rectangle &r2, Rectangle &res)
 
static double rectangleDistance (Rectangle *r1, Rectangle *r2)
 
static double rectangleGravityDistance (Rectangle *r1, Rectangle *r2)
 
static T horizontalDistance (Rectangle *r1, Rectangle *r2)
 
static T verticalDistance (Rectangle *r1, Rectangle *r2)
 
static RectanglerectanglesIntersection (Rectangle *r1, Rectangle *r2)
 
static bool rectanglesIntersection (Rectangle &r1, Rectangle &r2, Rectangle &inter)
 
static bool rectanglesIntersection (Rectangle *r1, Rectangle *r2, Rectangle *inter)
 
static RectanglerectanglesUnion (Rectangle *r1, Rectangle *r2)
 
static double rectangleIntersectRatio (Rectangle *r1, Rectangle *r2)
 
static double rectangleIntersectRatioStrict (Rectangle *r1, Rectangle *r2)
 
static bool rectangleInRectangle (Rectangle *r1, Rectangle *r2)
 
static double rectangleIntersectionArea (Rectangle *r1, Rectangle *r2)
 
static double rectangleNIntersectionArea (const std::vector< Rectangle * > &rectangles)
 
static bool isRect1InsideRect2 (Rectangle *r1, Rectangle *r2)
 
static bool thereIsIntersection (Rectangle *r1, Rectangle *r2)
 
static T overlappingArea (Rectangle< T > *r1, Rectangle< T > *r2)
 
static T overlappingArea (Rectangle< T > &r1, Rectangle< T > &r2)
 

Public Attributes

xleft
 
ytop
 
xright
 
ybottom
 
width
 
height
 

The documentation for this class was generated from the following file: