VpcCropAndPaste

函数功能

用于实现抠图并贴图功能,调用该接口前必须调用Init接口来实现该功能的初始化。

函数原型

1
APP_ERROR DvppWrapper::VpcCropAndPaste(const DvppDataInfo& inputDataInfo, DvppDataInfo& outputDataInfo, CropRoiConfig& pasteRoi, CropRoiConfig& cropRoi, AscendStream& stream)
1
APP_ERROR DvppWrapper::VpcCropAndPaste(const DvppDataInfo& inputDataInfo, DvppDataInfo& outputDataInfo, CropRoiConfig& pasteRoi, CropRoiConfig& cropRoi);

参数说明

参数名

输入/输出

说明

inputDataInfo

输入

原始图片相关信息。

outputDataInfo

输出

返回贴图相关信息。

pasteRoi

输入

贴图区域。

cropRoi

输入

原始图片抠图区域。

stream

输入

AscendStream类型,当不输入AscendStream& stream或者参数值为“AscendStream::DefaultStream()”时,接口为同步操作,其他情况下,接口为异步操作。

返回参数说明

数据结构

说明

APP_ERROR

程序执行返回的错误码,请参考APP_ERROR说明