~SimilarityTransform
~SimilarityTransform
函数功能
SimilarityTransform类的默认析构函数。
函数原型
~SimilarityTransform();
父主题: SimilarityTransform
Transform
函数功能
计算仿射变换矩阵。
函数原型
cv::Mat Transform(const std::vector<cv::Point2f> &srcPoint, const std::vector<cv::Point2f> &dstPoint) const;
参数说明
| 参数名 | 输入/输出 | 说明 |
|---|---|---|
| srcPoint | 输入 | 转换前数组。向量中point个数不超过10000,坐标范围为[0,8192]。 |
| dstPoint | 输入 | 转换后数组。 长度需要与srcPoint一致。向量中point个数不超过10000,坐标范围为[0,8192]。 |
返回参数说明
| 数据结构 | 说明 |
|---|---|
| cv::Mat | 返回仿射变换矩阵。 |
父主题: SimilarityTransform
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
在线提单