VPI - Vision Programming Interface

0.1.0 Release

VPIBoundingBox Struct Reference

Stores a generic 2D bounding box. More...

#include <vpi/Types.h>

+ Collaboration diagram for VPIBoundingBox:

Data Fields

VPIHomographyTransform2D xform
 Defines the bounding box top left corner and its homography.
 
float width
 Bounding box width.
 
float height
 Bounding box height.
 

Detailed Description

Stores a generic 2D bounding box.

Although this structure can store a 2D bounding box transformed by any homography, most of the time it stores an axis-aligned bounding box. To retrieve it, do the following:

float x = xform.mat3[0][2];
float y = xform.mat3[1][2];
float w = width * xform.mat3[0][0];
float h = height * xform.mat3[1][1];

Definition at line 344 of file Types.h.


The documentation for this struct was generated from the following file:
VPIBoundingBox::xform
VPIHomographyTransform2D xform
Defines the bounding box top left corner and its homography.
Definition: Types.h:346
VPIHomographyTransform2D::mat3
float mat3[3][3]
3x3 homogeneous matrix that defines the homography.
Definition: Types.h:328
VPIBoundingBox::width
float width
Bounding box width.
Definition: Types.h:347
VPIBoundingBox::height
float height
Bounding box height.
Definition: Types.h:347