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

Public Member Functions | |
void | operator() (hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output, const double angle_deg, const double2 shift, const eInterpolationType interpolation, const eDeviceType device=eDeviceType::GPU) const |
Rotates a batch of images by a given angle in degrees counter-clockwise. More... | |
Rotate () | |
Construct a new Op Rotate object. More... | |
~Rotate () | |
Destroy the Op Rotate object. More... | |
![]() | |
virtual | ~IOperator () |
Detailed Description
Class for managing the Rotate operator.
Constructor & Destructor Documentation
◆ Rotate()
|
inline |
Construct a new Op Rotate object.
◆ ~Rotate()
|
inline |
Destroy the Op Rotate object.
Member Function Documentation
◆ operator()()
void roccv::Rotate::operator() | ( | hipStream_t | stream, |
const roccv::Tensor & | input, | ||
const roccv::Tensor & | output, | ||
const double | angle_deg, | ||
const double2 | shift, | ||
const eInterpolationType | interpolation, | ||
const eDeviceType | device = eDeviceType::GPU |
||
) | const |
Rotates a batch of images by a given angle in degrees counter-clockwise.
Limitations:
Input: Supported TensorLayout(s): [NHWC, HWC] Channels: [1, 3, 4] Supported DataType(s): [U8, S8, U16, S16, U32, S32, F32, F64]
Output: Supported TensorLayout(s): [NHWC, HWC] 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 | Yes Height | Yes Batch | Yes
- Parameters
-
[in] stream The HIP stream to run this operator on. [in] input Input tensor with image batch data [out] output Output tensor for storing modified image batch data [in] angle_deg The angle in degrees for which images are rotated by. [in] shift x and y coordinates to perform a shift after a rotation. [in] interpolation The interpolation method to be applied to the images. [in] device The device to run this operation 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_rotate.hpp