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

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_thresholding.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_thresholding.hpp Source File
op_thresholding.hpp
Go to the documentation of this file.
1 
22 #pragma once
23 
24 #include <operator_types.h>
25 
26 #include <i_operator.hpp>
27 
28 #include "core/tensor.hpp"
29 
30 
31 namespace roccv {
36 class Threshold final : public IOperator {
37  public:
43  Threshold(eThresholdType threshType, int32_t maxBatchSize);
44 
108  void operator()(hipStream_t stream, const roccv::Tensor& input, const roccv::Tensor& output,
109  const roccv::Tensor& thresh, const roccv::Tensor& maxVal, eDeviceType device = eDeviceType::GPU);
110 
111  private:
112  eThresholdType m_threshType;
113  int32_t m_maxBatchSize;
114 };
115 } // namespace roccv
Interface class for all roccv operators.
Definition: i_operator.hpp:31
Definition: tensor.hpp:37
Class for managing the Threshold operator.
Definition: op_thresholding.hpp:36
Threshold(eThresholdType threshType, int32_t maxBatchSize)
Constructs a Threshold object.
void operator()(hipStream_t stream, const roccv::Tensor &input, const roccv::Tensor &output, const roccv::Tensor &thresh, const roccv::Tensor &maxVal, eDeviceType device=eDeviceType::GPU)
Construct a new Threshold object. The object can be used to choose a global threshold value that is t...
~Threshold()
Destroy the Threshold object.
Definition: strided_data_wrap.hpp:33
eThresholdType
Definition: operator_types.h:72
eDeviceType
Describes the device type. Used to determine where Tensor data should be allocated and whether operat...
Definition: util_enums.h:69