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

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_rotate.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_rotate.hpp Source File
op_rotate.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 "op_warp_affine.hpp"
28 #include "operator_types.h"
29 
30 namespace roccv {
31 
37 class Rotate final : public IOperator {
38  public:
43  Rotate() {}
44 
49  ~Rotate() {}
50 
87  void operator()(hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output, const double angle_deg,
88  const double2 shift, const eInterpolationType interpolation,
89  const eDeviceType device = eDeviceType::GPU) const;
90 };
91 } // namespace roccv
Interface class for all roccv operators.
Definition: i_operator.hpp:31
Class for managing the Rotate operator.
Definition: op_rotate.hpp:37
void operator()(hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output, const double angle_deg, const double2 shift, const eInterpolationType interpolation, const eDeviceType device=eDeviceType::GPU) const
Rotates a batch of images by a given angle in degrees counter-clockwise.
Rotate()
Construct a new Op Rotate object.
Definition: op_rotate.hpp:43
~Rotate()
Destroy the Op Rotate object.
Definition: op_rotate.hpp:49
Definition: tensor.hpp:37
Definition: strided_data_wrap.hpp:33
eInterpolationType
Definition: operator_types.h:30
eDeviceType
Describes the device type. Used to determine where Tensor data should be allocated and whether operat...
Definition: util_enums.h:69