Resize Class Reference

Resize Class Reference#

2 min read time

Applies to Linux

rocCV: roccv::Resize Class Reference
roccv::Resize Class Referencefinal

Class for managing the Resize operator. More...

#include <op_resize.hpp>

Inheritance diagram for roccv::Resize:
roccv::IOperator

Public Member Functions

void operator() (hipStream_t stream, const Tensor &in, const Tensor &output, const eInterpolationType interpolation, const eDeviceType device=eDeviceType::GPU) const
 Resizes input images to the shape of the output images using an interpolation mode for upscaling/downscaling. More...
 
 Resize ()
 Construct a new Op Resize object. More...
 
 ~Resize ()
 Destroy the Op Resize object. More...
 
- Public Member Functions inherited from roccv::IOperator
virtual ~IOperator ()
 

Detailed Description

Class for managing the Resize operator.

Constructor & Destructor Documentation

◆ Resize()

roccv::Resize::Resize ( )
inline

Construct a new Op Resize object.

◆ ~Resize()

roccv::Resize::~Resize ( )
inline

Destroy the Op Resize object.

Member Function Documentation

◆ operator()()

void roccv::Resize::operator() ( hipStream_t  stream,
const Tensor in,
const Tensor output,
const eInterpolationType  interpolation,
const eDeviceType  device = eDeviceType::GPU 
) const

Resizes input images to the shape of the output images using an interpolation mode for upscaling/downscaling.

Limitations:

Input: Supported TensorLayout(s): [NHWC, HWC] Channels: [1, 3, 4] Supported DataType(s): [U8, F32]

Output: Supported TensorLayout(s): [NHWC, HWC] Channels: [1, 3, 4] Supported DataType(s) [U8, F32]

Input/Output dependency:

  Property      |  Input == Output
 -------------- | -------------
  TensorLayout  | Yes
  DataType      | Yes
  Channels      | Yes
  Width         | No
  Height        | No
  Batch         | Yes

Supported interpolation modes: [NEAREST, LINEAR]

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]interpolationThe interpolation method used when resizing images.
[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_resize.hpp