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

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/op_histogram.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_histogram.hpp Source File
op_histogram.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 
31 namespace roccv {
36 class Histogram final : public IOperator {
37  public:
44 
92  void operator()(hipStream_t stream, const Tensor& input, std::optional<std::reference_wrapper<const Tensor>> mask, const Tensor& histogram,
93  const eDeviceType device = eDeviceType::GPU);
94 };
95 } // namespace roccv
Class for managing the Histogram operator.
Definition: op_histogram.hpp:36
Histogram()
Constructs a Histogram object.
void operator()(hipStream_t stream, const Tensor &input, std::optional< std::reference_wrapper< const Tensor >> mask, const Tensor &histogram, const eDeviceType device=eDeviceType::GPU)
Executes the Histogram operation. Shows how many times each pixel value occurs for a grayscale image.
~Histogram()
Destroy the Histogram object.
Interface class for all roccv operators.
Definition: i_operator.hpp:31
Definition: tensor.hpp:37
Definition: strided_data_wrap.hpp:33
eDeviceType
Describes the device type. Used to determine where Tensor data should be allocated and whether operat...
Definition: util_enums.h:69