跳到主要内容

Transform

SimilarityTransform​

函数功能​

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

函数原型​

SimilarityTransform();

父主题: 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

在线提单