CustomCrop Class Reference

CustomCrop Class Reference#

2 min read time

Applies to Linux

rocCV: roccv::CustomCrop Class Reference
roccv::CustomCrop Class Referencefinal

Class for managing the Custom Crop operator. More...

#include <op_custom_crop.hpp>

Inheritance diagram for roccv::CustomCrop:
roccv::IOperator

Public Member Functions

 CustomCrop ()
 Construct a new Op CustomCrop object. More...
 
void operator() (hipStream_t stream, const Tensor &input, const Tensor &output, const Box_t cropRect, const eDeviceType device=eDeviceType::GPU) const
 Construct a new Op Custom Crop object. The object can be used to crop a region of interest from an image. More...
 
 ~CustomCrop ()
 Destroy the Op CustomCrop object. More...
 
- Public Member Functions inherited from roccv::IOperator
virtual ~IOperator ()
 

Detailed Description

Class for managing the Custom Crop operator.

Constructor & Destructor Documentation

◆ CustomCrop()

roccv::CustomCrop::CustomCrop ( )
inline

Construct a new Op CustomCrop object.

◆ ~CustomCrop()

roccv::CustomCrop::~CustomCrop ( )
inline

Destroy the Op CustomCrop object.

Member Function Documentation

◆ operator()()

void roccv::CustomCrop::operator() ( hipStream_t  stream,
const Tensor input,
const Tensor output,
const Box_t  cropRect,
const eDeviceType  device = eDeviceType::GPU 
) const

Construct a new Op Custom Crop object. The object can be used to crop a region of interest from an 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 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
  Batch         | 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]croppingBoxA box representing how the input image should be cropped to the output image. Its dimensions should match that of the output tensor's 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_custom_crop.hpp