WarpAffine Class Reference

WarpAffine Class Reference#

2 min read time

Applies to Linux

rocCV: roccv::WarpAffine Class Reference
roccv::WarpAffine Class Referencefinal

#include <op_warp_affine.hpp>

Inheritance diagram for roccv::WarpAffine:
roccv::IOperator

Public Member Functions

void operator() (hipStream_t stream, const Tensor &input, const Tensor &output, const AffineTransform xform, const bool isInverted, const eInterpolationType interp, const eBorderType borderMode, const float4 borderValue, const eDeviceType device=eDeviceType::GPU) const
 Executes the WarpAffine operation on the given HIP stream. WarpAffine applies an affine transformation to a given input image. More...
 
 WarpAffine ()
 Construct a new WarpAffine object. More...
 
 ~WarpAffine ()
 Destroy the WarpAffine object. More...
 
- Public Member Functions inherited from roccv::IOperator
virtual ~IOperator ()
 

Constructor & Destructor Documentation

◆ WarpAffine()

roccv::WarpAffine::WarpAffine ( )
inline

Construct a new WarpAffine object.

◆ ~WarpAffine()

roccv::WarpAffine::~WarpAffine ( )
inline

Destroy the WarpAffine object.

Member Function Documentation

◆ operator()()

void roccv::WarpAffine::operator() ( hipStream_t  stream,
const Tensor input,
const Tensor output,
const AffineTransform  xform,
const bool  isInverted,
const eInterpolationType  interp,
const eBorderType  borderMode,
const float4  borderValue,
const eDeviceType  device = eDeviceType::GPU 
) const

Executes the WarpAffine operation on the given HIP stream. WarpAffine applies an affine transformation to a given input image.

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 DataTypes(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
  Batch size    | Yes
Parameters
[in]streamThe HIP stream to run this operator on.
[in]inputInput tensor with image data.
[out]outputOutput tensor for storing modified image data.
[in]xformAffine transformation matrix in row-major order.
[in]isInvertedFlag defining whether the xform (transformation matrix) is the inverted transformation or not.
[in]interpInterpolation method used for warp affine.
[in]borderModeThe border mode to use for the affine transformation.
[in]borderValueThe border value to use in the case of a CONSTANT border mode.
[in]deviceThe 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_affine.hpp