NVIDIA DeepStream SDK API Reference

9.2 Release
sources/libs/nvmultiobjecttracker/include/modules/utility/cv_functions.hpp File Reference

Go to the source code of this file.

Namespaces

 CV_FUNCS
 

Functions

Eigen::VectorXd CV_FUNCS::convertBboxToZ (const NvMotDataTypes::Rect2f &bbox, const bool useAspc=false)
 Convert a bounding box to an estimator measurement vector. More...
 
void CV_FUNCS::convexHull (const std::vector< Eigen::Vector2d > &points, std::vector< Eigen::Vector2d > &hull)
 Compute the convex hull of double-precision points. More...
 
void CV_FUNCS::convexHull (const std::vector< Eigen::Vector2f > &points, std::vector< Eigen::Vector2f > &hull)
 Compute the convex hull of single-precision points. More...
 
NvMotDataTypes::Rect2f CV_FUNCS::boundingRect (const std::vector< Eigen::Vector2d > &points)
 Compute the axis-aligned bounding rectangle of a point set. More...
 
NvMotDataTypes::Rect2f CV_FUNCS::boundingRect (float *mask, const int width, const int height)
 Compute the bounding rectangle of nonzero mask values. More...
 
NvMotDataTypes::Rect2f CV_FUNCS::constructRect2f (const float minX=0, const float minY=0, const float width=0, const float height=0)
 Construct an axis-aligned rectangle from its origin and size. More...
 
NvMotDataTypes::Rect2f CV_FUNCS::displaceBbox (const NvMotDataTypes::Rect2f &bbox, const float displacement_x, const float displacement_y)
 Translate a bounding box by horizontal and vertical displacements. More...
 
Eigen::Vector2f CV_FUNCS::getBboxCenterPt (const NvMotDataTypes::Rect2f &bbox)
 Compute the center point of a bounding box. More...
 
const std::string CV_FUNCS::getEigenRectString (const NvMotDataTypes::Rect2f &bbox)
 Format an Eigen bounding box as a readable string. More...
 
bool CV_FUNCS::isBboxEqual (const NvMotDataTypes::Rect2f &bbox1, const NvMotDataTypes::Rect2f &bbox2)
 Compare two bounding boxes for exact equality. More...
 
int CV_FUNCS::modul (int a, int b)
 Compute a nonnegative modulo result for positive divisors. More...
 
NvMotDataTypes::Rect2f CV_FUNCS::getBoxWithAspectRatio (const NvMotDataTypes::Rect2f &bbox, const float aspectRatio)
 Adjust the width of the bbox according to the aspect ratio specified. More...
 
NvMotDataTypes::Rect2f CV_FUNCS::convertXToBbox (const Eigen::VectorXd &x, const bool useAspc=false)
 Convert an estimator state vector to a bounding box. More...
 
NvMotDataTypes::RowMajorMatrixXf CV_FUNCS::getHanningWindow (const int width, const int height, float offsetFactor_y=0.f)
 Generate a separable two-dimensional Hann window. More...
 
float CV_FUNCS::computeSizeScore (const NvMotDataTypes::Rect2f &currBox, const NvMotDataTypes::Rect2f &prevBox)
 Compute a symmetric area-ratio score between two bounding boxes. More...
 
Eigen::MatrixXf CV_FUNCS::circshift (const Eigen::MatrixXf &matrix, int dx, int dy)
 Circularly shift a matrix along both axes. More...
 
Eigen::MatrixXf CV_FUNCS::get2dGaussianPdf (const float sigma, const int w, const int h, const bool wrap_kernel=true)
 Create a two-dimensional Gaussian response map. More...
 
const NvMotDataTypes::Rect2f CV_FUNCS::unclipBbox (const NvMotDataTypes::Rect2f tBbox_new, const NvMotDataTypes::Rect2f srcImageBox, const NvMotDataTypes::Rect2f tBbox_prev)
 Recover bounding-box extent clipped by an image border using the previous box size. More...
 
const NvMotDataTypes::Rect2f CV_FUNCS::computeSearchRegion (const NvMotDataTypes::Rect2f &bbox_new, const float paddingScale)
 Expand a bounding box into a square search region. More...
 
float CV_FUNCS::computeIOU (const NvMotDataTypes::Rect2f currBox, const NvMotDataTypes::Rect2f prevBox)
 Compute intersection over union for two bounding boxes. More...
 
float CV_FUNCS::computeVisibility (const NvMotDataTypes::Rect2f &objBbox, const NvMotDataTypes::Rect2f &imgBbox)
 Compute the fraction of an object bounding box visible inside an image box. More...
 
int CV_FUNCS::orientation (const Eigen::Vector2d &p, const Eigen::Vector2d &q, const Eigen::Vector2d &r)
 Classify the orientation of three double-precision points. More...
 
int CV_FUNCS::orientation (const Eigen::Vector2f &p, const Eigen::Vector2f &q, const Eigen::Vector2f &r)
 Classify the orientation of three single-precision points. More...