跳到主要内容

Process

WarpAffine​

函数功能​

类构造函数,创建仿射变换类对象(图像变换的一种)。

函数原型​

WarpAffine();

父主题: WarpAffine

~WarpAffine​

函数功能​

WarpAffine类的默认析构函数。

函数原型​

~WarpAffine();

父主题: WarpAffine

Process​

函数功能​

进行仿射变换。

函数原型​

APP_ERROR Process(std::vector<MxBase::DvppDataInfo> &warpAffineDataInfoInputVec,
std::vector<MxBase::DvppDataInfo> &warpAffineDataInfoOutputVec,
std::vector<KeyPointInfo> &keyPointInfoVec, int picHeight, int picWidth);

参数说明​

参数名输入/输出说明
warpAffineDataInfoInputVec输入变换前图片信息。
warpAffineDataInfoOutputVec输出变换后图片信息。长度需要与warpAffineDataInfoInputVec一致。
keyPointInfoVec输入关键点参数。长度需要与warpAffineDataInfoInputVec一致。
picHeight输入图片高度。取值范围[32, 8192]。
picWidth输入图片宽度。取值范围[32, 8192]。

返回参数说明​

数据结构说明
APP_ERROR程序执行返回的错误码,请参考APP_ERROR说明。

父主题: WarpAffine

HungarianHandleInit​

函数功能​

初始化匈牙利算法匹配矩阵图。

函数原型​

APP_ERROR HungarianHandleInit(HungarianHandle &handle, int row, int cols);

参数说明​

参数名输入/输出说明
handle输入匈牙利算法专用结构体。
row输入匈牙利算法匹配矩阵行数。 限定范围(0, 8192]。
cols输入匈牙利算法匹配矩阵列数。 限定范围(0, 8192]。

返回参数说明​

数据结构说明
APP_ERROR程序执行返回的错误码,请参考APP_ERROR说明。

父主题: Hungarian

HungarianSolve​

备注

须知

在调用HungarianSolve函数时,用户需保证已经使用HungarianHandleInit函数对相关参数进行了初始化,否则HungarianSolve函数无法正确执行。

函数功能​

执行匈牙利算法,解决二部图最小权值匹配问题,需要先执行HungarianHandleInit方法。

函数原型​

int HungarianSolve(HungarianHandle &handle, const std::vector<std::vector<int>> &cost, const int rows, const int cols);

参数说明​

参数名输入/输出说明
handle输入匈牙利算法专用结构体。
cost输入权值矩阵。
rows输入匈牙利算法匹配矩阵行数。
cols输入匈牙利算法匹配矩阵列数。

返回参数说明​

数据结构说明
APP_ERROR程序执行返回的错误码,请参考APP_ERROR说明。

父主题: Hungarian

KalmanTracker​

函数功能​

类构造函数,创建卡尔曼滤波器对象。

函数原型​

KalmanTracker();

父主题: KalmanTracker

在线提单