/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_custom_crop.hpp Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_custom_crop.hpp Source File#

2 min read time

Applies to Linux

rocCV: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_custom_crop.hpp Source File
op_custom_crop.hpp
Go to the documentation of this file.
1 
22 #pragma once
23 
24 #include <i_operator.hpp>
25 
26 #include "core/tensor.hpp"
27 #include "operator_types.h"
28 
29 
30 namespace roccv {
35 class CustomCrop final : public IOperator {
36  public:
42 
48 
49 
85  void operator()(hipStream_t stream, const Tensor &input, const Tensor &output, const Box_t cropRect,
86  const eDeviceType device = eDeviceType::GPU) const;
87 };
88 } // namespace roccv
Class for managing the Custom Crop operator.
Definition: op_custom_crop.hpp:35
~CustomCrop()
Destroy the Op CustomCrop object.
Definition: op_custom_crop.hpp:47
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 im...
CustomCrop()
Construct a new Op CustomCrop object.
Definition: op_custom_crop.hpp:41
Interface class for all roccv operators.
Definition: i_operator.hpp:31
Definition: tensor.hpp:37
Definition: strided_data_wrap.hpp:33
Definition: operator_types.h:90
eDeviceType
Describes the device type. Used to determine where Tensor data should be allocated and whether operat...
Definition: util_enums.h:69