Interface for the kernel to calculate mean and standard deviation of input image pixels.
More...
#include <NEMeanStdDevKernel.h>
Interface for the kernel to calculate mean and standard deviation of input image pixels.
Definition at line 38 of file NEMeanStdDevKernel.h.
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
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.
- Parameters
-
[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. |
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
void run |
( |
const Window & |
window | ) |
|
|
overridevirtual |
Execute the kernel on the passed window.
- Warning
- If is_parallelisable() returns false then the passed window must be equal to window()
- Note
- The window has to be a region within the window returned by the window() method
-
The width of the window has to be a multiple of num_elems_processed_per_iteration().
- Parameters
-
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
Implements ICPPKernel.
The documentation for this class was generated from the following file: