Rotate Class Reference

Rotate Class Reference#

2 min read time

Applies to Linux

rocCV: roccv::Rotate Class Reference
roccv::Rotate Class Referencefinal

Class for managing the Rotate operator. More...

#include <op_rotate.hpp>

Inheritance diagram for roccv::Rotate:
roccv::IOperator

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...
 
- Public Member Functions inherited from roccv::IOperator
virtual ~IOperator ()
 

Detailed Description

Class for managing the Rotate operator.

Constructor & Destructor Documentation

◆ Rotate()

roccv::Rotate::Rotate ( )
inline

Construct a new Op Rotate object.

◆ ~Rotate()

roccv::Rotate::~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]streamThe HIP stream to run this operator on.
[in]inputInput tensor with image batch data
[out]outputOutput tensor for storing modified image batch data
[in]angle_degThe angle in degrees for which images are rotated by.
[in]shiftx and y coordinates to perform a shift after a rotation.
[in]interpolationThe interpolation method to be applied to the images.
[in]deviceThe 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