21.02
|
Interface for the kernel to calculate mean and standard deviation of input image pixels. More...
#include <NEMeanStdDevKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEMeanStdDevKernel () | |
Default constructor. More... | |
NEMeanStdDevKernel (const NEMeanStdDevKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEMeanStdDevKernel & | operator= (const NEMeanStdDevKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEMeanStdDevKernel (NEMeanStdDevKernel &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEMeanStdDevKernel & | operator= (NEMeanStdDevKernel &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEMeanStdDevKernel ()=default | |
Default destructor. More... | |
void | configure (const IImage *input, float *mean, uint64_t *global_sum, float *stddev=nullptr, uint64_t *global_sum_squared=nullptr) |
Initialise the kernel's input and outputs. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
BorderSize | border_size () const override |
The size of the border for that kernel. 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... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
Interface for the kernel to calculate mean and standard deviation of input image pixels.
Definition at line 38 of file NEMeanStdDevKernel.h.
Default constructor.
Definition at line 89 of file NEMeanStdDevKernel.cpp.
Referenced by NEMeanStdDevKernel::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 NEMeanStdDevKernel::name().
|
overridevirtual |
The size of the border for that kernel.
Reimplemented from IKernel.
Definition at line 94 of file NEMeanStdDevKernel.cpp.
Referenced by NEMeanStdDevKernel::name().
void configure | ( | const IImage * | input, |
float * | mean, | ||
uint64_t * | global_sum, | ||
float * | stddev = nullptr , |
||
uint64_t * | global_sum_squared = nullptr |
||
) |
Initialise the kernel's input and outputs.
[in] | input | Input image. Data type supported: U8. |
[out] | mean | Input average pixel value. |
[out] | global_sum | Keeps global sum of pixel values. |
[out] | stddev | (Optional) Output standard deviation of pixel values. |
[out] | global_sum_squared | (Optional if stddev is not set, required if stddev is set) Keeps global sum of squared pixel values. |
Definition at line 99 of file NEMeanStdDevKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, ARM_COMPUTE_ERROR_ON_TENSOR_NOT_2D, arm_compute::calculate_max_window(), arm_compute::ceil_to_multiple(), ITensorInfo::dimension(), ITensor::info(), arm_compute::test::validation::input, num_elems_processed_per_iteration, arm_compute::U8, and arm_compute::update_window_and_padding().
Referenced by NEMeanStdDevKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 41 of file NEMeanStdDevKernel.h.
References NEMeanStdDevKernel::border_size(), NEMeanStdDevKernel::configure(), arm_compute::test::validation::info, arm_compute::test::validation::input, NEMeanStdDevKernel::NEMeanStdDevKernel(), NEMeanStdDevKernel::operator=(), NEMeanStdDevKernel::run(), IKernel::window(), and NEMeanStdDevKernel::~NEMeanStdDevKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEMeanStdDevKernel::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 125 of file NEMeanStdDevKernel.cpp.
References ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ARM_COMPUTE_UNUSED, ITensorInfo::dimension(), ITensor::info(), arm_compute::test::validation::input, and IKernel::window().
Referenced by NEMeanStdDevKernel::name().