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

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_warp_perspective.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_warp_perspective.hpp Source File
op_warp_perspective.hpp
Go to the documentation of this file.
1 
22 #pragma once
23 #include <hip/hip_runtime.h>
24 #include <operator_types.h>
25 
26 #include <i_operator.hpp>
27 
28 #include "core/tensor.hpp"
29 
30 namespace roccv {
35 class WarpPerspective final : public IOperator {
36  public:
76  void operator()(hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output,
77  const PerspectiveTransform transMatrix, bool isInverted, const eInterpolationType interpolation,
78  const eBorderType borderType, const float4 borderValue,
79  const eDeviceType device = eDeviceType::GPU) const;
80 };
81 } // namespace roccv
Interface class for all roccv operators.
Definition: i_operator.hpp:31
Definition: tensor.hpp:37
Class for managing the Warp Perspective operator.
Definition: op_warp_perspective.hpp:35
void operator()(hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output, const PerspectiveTransform transMatrix, bool isInverted, const eInterpolationType interpolation, const eBorderType borderType, const float4 borderValue, const eDeviceType device=eDeviceType::GPU) const
Construct a new Op Warp Perspective object. The object can be used to apply a perspective transformat...
Definition: strided_data_wrap.hpp:33
eInterpolationType
Definition: operator_types.h:30
float PerspectiveTransform[9]
Definition: operator_types.h:81
eBorderType
Definition: operator_types.h:36
eDeviceType
Describes the device type. Used to determine where Tensor data should be allocated and whether operat...
Definition: util_enums.h:69