Raytrix Light Field SDK  5.0
Rx::LFR::AreaDetection::SArea Struct Reference

Detailed Description

An AreaDetection Area.

Public Member Functions

 SArea ()=default
 
 SArea (int iX, int iY, int iDetectionWidth, int iDetectionHeight, int iTemplateWidth, int iTemplateHeight, double dTemplateRotationAngle, double dSimilarityValue)
 
 ~SArea ()=default
 
int GetCenterX ()
 Gets center x coordinate. More...
 
int GetCenterY ()
 Gets center y coordinate. More...
 
int * GetTemplatePosition (unsigned &uSize)
 Gets the position of the template in this area, i.e. the rotated rectangle in the detection area. More...
 
bool IsOverlap (const SArea &xRight)
 Determine if two Areas are overlapping each other. More...
 

Public Attributes

double dSimilarityValue
 The similarity to the template. More...
 
double dTemplateRotationAngle
 The rotation angle of the template that was found in this match. More...
 
int iDetectionHeight
 The height of the detection area used to find this match. More...
 
int iDetectionWidth
 The width of the detection area used to find this match. More...
 
int iTemplateHeight
 Height of the template that was found in this match. More...
 
int iTemplateWidth
 Width of the template that was found in this match. More...
 
int iTopLeftX
 The top left x coordinate. More...
 
int iTopLeftY
 The top left y coordinate. More...
 

Constructor & Destructor Documentation

◆ SArea() [1/2]

Rx::LFR::AreaDetection::SArea::SArea ( )
default

◆ SArea() [2/2]

Rx::LFR::AreaDetection::SArea::SArea ( int  iX,
int  iY,
int  iDetectionWidth,
int  iDetectionHeight,
int  iTemplateWidth,
int  iTemplateHeight,
double  dTemplateRotationAngle,
double  dSimilarityValue 
)
inline

◆ ~SArea()

Rx::LFR::AreaDetection::SArea::~SArea ( )
default

Member Function Documentation

◆ GetCenterX()

int Rx::LFR::AreaDetection::SArea::GetCenterX ( )
inline

Gets center x coordinate.

Returns
The center x coordinate.

◆ GetCenterY()

int Rx::LFR::AreaDetection::SArea::GetCenterY ( )
inline

Gets center y coordinate.

Returns
The center y coordinate.

◆ GetTemplatePosition()

int* Rx::LFR::AreaDetection::SArea::GetTemplatePosition ( unsigned &  uSize)

Gets the position of the template in this area, i.e. the rotated rectangle in the detection area.

Parameters
uSize[out] The size of the output array.
Returns
The template position as 4 points, given with their x- and y-coordinates, i.e. an array with 8 entries, in order top left, top right, bottom right, bottom left.

◆ IsOverlap()

bool Rx::LFR::AreaDetection::SArea::IsOverlap ( const SArea xRight)

Determine if two Areas are overlapping each other.

Parameters
xRight[in] The right.
Returns
True if the two areas overlap each other.

Member Data Documentation

◆ dSimilarityValue

double Rx::LFR::AreaDetection::SArea::dSimilarityValue

The similarity to the template.

◆ dTemplateRotationAngle

double Rx::LFR::AreaDetection::SArea::dTemplateRotationAngle

The rotation angle of the template that was found in this match.

◆ iDetectionHeight

int Rx::LFR::AreaDetection::SArea::iDetectionHeight

The height of the detection area used to find this match.

◆ iDetectionWidth

int Rx::LFR::AreaDetection::SArea::iDetectionWidth

The width of the detection area used to find this match.

◆ iTemplateHeight

int Rx::LFR::AreaDetection::SArea::iTemplateHeight

Height of the template that was found in this match.

◆ iTemplateWidth

int Rx::LFR::AreaDetection::SArea::iTemplateWidth

Width of the template that was found in this match.

◆ iTopLeftX

int Rx::LFR::AreaDetection::SArea::iTopLeftX

The top left x coordinate.

◆ iTopLeftY

int Rx::LFR::AreaDetection::SArea::iTopLeftY

The top left y coordinate.