Interface for the histogram kernel.
More...
#include <NEHistogramKernel.h>
Interface for the histogram kernel.
Definition at line 40 of file NEHistogramKernel.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, |
|
|
IDistribution1D * |
output, |
|
|
uint32_t * |
local_hist, |
|
|
uint32_t * |
window_lut |
|
) |
| |
Set the input image and the distribution output.
- Parameters
-
[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. |
Set the input image and the distribution output.
- Note
- Used for histogram of fixed size equal to 256
- Parameters
-
[in] | input | Source image. Data type supported: U8. |
[out] | output | Destination distribution which must be of 256 bins.. |
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: