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

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... | |
![]() | |
virtual | ~IOperator () |
Detailed Description
Class for managing the Custom Crop operator.
Constructor & Destructor Documentation
◆ CustomCrop()
|
inline |
Construct a new Op CustomCrop object.
◆ ~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] stream The HIP stream to run this operator on. [in] input Input tensor with image data. [out] output Output tensor for storing modified image data. [in] croppingBox A 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] device The 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