21.02
|
Interface for the histogram kernel. More...
#include <NEHistogramKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEHistogramKernel () | |
Default constructor. More... | |
NEHistogramKernel (const NEHistogramKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEHistogramKernel & | operator= (const NEHistogramKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEHistogramKernel (NEHistogramKernel &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEHistogramKernel & | operator= (NEHistogramKernel &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEHistogramKernel ()=default | |
Default destructor. More... | |
void | configure (const IImage *input, IDistribution1D *output, uint32_t *local_hist, uint32_t *window_lut) |
Set the input image and the distribution output. More... | |
void | configure (const IImage *input, IDistribution1D *output) |
Set the input image and the distribution output. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
virtual void | run_nd (const Window &window, const ThreadInfo &info, const Window &thread_locator) |
legacy compatibility layer for implemantions which do not support thread_locator In these cases we simply narrow the interface down the legacy version More... | |
virtual void | run_op (ITensorPack &tensors, const Window &window, const ThreadInfo &info) |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
virtual BorderSize | border_size () const |
The size of the border for that kernel. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
Interface for the histogram kernel.
Definition at line 40 of file NEHistogramKernel.h.
Default constructor.
Definition at line 63 of file NEHistogramKernel.cpp.
Referenced by NEHistogramKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
Referenced by NEHistogramKernel::name().
void configure | ( | const IImage * | input, |
IDistribution1D * | output, | ||
uint32_t * | local_hist, | ||
uint32_t * | window_lut | ||
) |
Set the input image and the distribution output.
[in] | input | Source image. Data type supported: U8. |
[out] | output | Destination distribution. |
[in,out] | local_hist | Array that the threads use to save their local histograms. It's size should be equal to (number_of_threads * num_bins), and the Window::thread_id() is used to determine the part of the array used by each thread. |
[out] | window_lut | LUT with pre-calculated possible window values. The size of the LUT should be equal to max_range_size and it will be filled during the configure stage, while it re-used in every run, therefore can be safely shared among threads. |
Definition at line 194 of file NEHistogramKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, arm_compute::test::validation::input, and arm_compute::U8.
Referenced by NEHistogramKernel::name().
void configure | ( | const IImage * | input, |
IDistribution1D * | output | ||
) |
Set the input image and the distribution output.
[in] | input | Source image. Data type supported: U8. |
[out] | output | Destination distribution which must be of 256 bins.. |
Definition at line 224 of file NEHistogramKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, arm_compute::test::validation::input, and arm_compute::U8.
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 43 of file NEHistogramKernel.h.
References NEHistogramKernel::configure(), arm_compute::test::validation::info, arm_compute::test::validation::input, NEHistogramKernel::NEHistogramKernel(), NEHistogramKernel::operator=(), NEHistogramKernel::run(), IKernel::window(), and NEHistogramKernel::~NEHistogramKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEHistogramKernel::name().
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Reimplemented from ICPPKernel.
Definition at line 241 of file NEHistogramKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, and IKernel::window().
Referenced by NEHistogramKernel::name().