WarpPerspective Class Reference#
2 min read time
Applies to Linux
roccv::WarpPerspective Class Referencefinal
Class for managing the Warp Perspective operator. More...
#include <op_warp_perspective.hpp>
Inheritance diagram for roccv::WarpPerspective:

Public Member Functions | |
void | operator() (hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output, const PerspectiveTransform transMatrix, bool isInverted, const eInterpolationType interpolation, const eBorderType borderType, const float4 borderValue, const eDeviceType device=eDeviceType::GPU) const |
Construct a new Op Warp Perspective object. The object can be used to apply a perspective transformation operation on an image. More... | |
![]() | |
virtual | ~IOperator () |
Detailed Description
Class for managing the Warp Perspective operator.
Member Function Documentation
◆ operator()()
void roccv::WarpPerspective::operator() | ( | hipStream_t | stream, |
const roccv::Tensor & | input, | ||
const roccv::Tensor & | output, | ||
const PerspectiveTransform | transMatrix, | ||
bool | isInverted, | ||
const eInterpolationType | interpolation, | ||
const eBorderType | borderType, | ||
const float4 | borderValue, | ||
const eDeviceType | device = eDeviceType::GPU |
||
) | const |
Construct a new Op Warp Perspective object. The object can be used to apply a perspective transformation operation on an image.
Limitations:
Input: Supported TensorLayout(s): [HWC, NHWC] Channels: [1, 3, 4] Supported DataType(s): [U8, S8, U16, S16, U32, S32, F32, F64]
Output: Supported TensorLayout(s): [HWC, NHWC] Channels: [1, 3, 4] Supported DataType(s): [U8, S8, U16, S16, U32, S32, F32, F64]
Input/Output dependency:
Property | Input == Output -------------- | ------------- TensorLayout | Yes DataType | Yes Channels | Yes Width | No Height | No
- Parameters
-
[in] stream The HIP stream to run this operator on. [in] input Input tensor with image data. [out] output Output tensor for storing modified image data. [in] transMatrix A 3x3 transformation matrix for the perspective transformation. [in] isInverted Marks whether transMatrix is the inverted transformation matrix or not. [in] interpolation Interpolation type (e.g. Nearest neigbour, linear). [in] borderType A border type to identify the pixel extrapolation method (e.g. BORDER_TYPE_CONSTANT or BORDER_TYPE_REPLICATE) [in] borderValue Set as 0 unless using a constant border. [in] device The device to run this operator on. (Default: GPU)
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_warp_perspective.hpp