Process
Function Usage
Performs affine transformation.
Prototype
1 | APP_ERROR WarpAffine::Process(std::vector<MxBase::DvppDataInfo> &warpAffineDataInfoInputVec, std::vector<MxBase::DvppDataInfo> &warpAffineDataInfoOutputVec, std::vector<KeyPointInfo> &keyPointInfoVec, int picHeight, int picWidth); |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
warpAffineDataInfoInputVec |
Input |
Image information before transformation. |
warpAffineDataInfoOutputVec |
Output |
Image information after transformation. Its number of elements must be the same as that of warpAffineDataInfoInputVec. The data in warpAffineDataInfoOutputVec needs to be freed by the user. |
keyPointInfoVec |
Input |
List of key point parameters, which is used to generate the coordinates of the target image size. Its number of elements must be the same as that of warpAffineDataInfoInputVec. |
picHeight |
Input |
Image height. The value range is [32, 8192]. |
picWidth |
Input |
Image width. The value range is [32, 8192]. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
For details about the returned error codes, see APP_ERROR Description. |