ARM Compute Library
17.04
|
Interface for the thresholding kernel. More...
#include <NEThresholdKernel.h>
Public Member Functions | |
NEThresholdKernel () | |
Constructor Initialize all the pointers to nullptr and parameters to zero. More... | |
NEThresholdKernel (const NEThresholdKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEThresholdKernel & | operator= (const NEThresholdKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
void | configure (const ITensor *input, ITensor *output, uint8_t threshold, uint8_t false_value, uint8_t true_value, ThresholdType type, uint8_t upper) |
Initialise the kernel's input, output and threshold parameters. More... | |
void | run (const Window &window) override |
Execute the kernel on the passed window. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. 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 thresholding kernel.
Definition at line 39 of file NEThresholdKernel.h.
Constructor Initialize all the pointers to nullptr and parameters to zero.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | const ITensor * | input, |
ITensor * | output, | ||
uint8_t | threshold, | ||
uint8_t | false_value, | ||
uint8_t | true_value, | ||
ThresholdType | type, | ||
uint8_t | upper | ||
) |
Initialise the kernel's input, output and threshold parameters.
[in] | input | An input tensor. Data type supported: U8 |
[out] | output | The output tensor. Data type supported: U8. |
[in] | threshold | Threshold. When the threhold type is RANGE, this is used as the lower threshold. |
[in] | false_value | value to set when the condition is not respected. |
[in] | true_value | value to set when the condition is respected. |
[in] | type | Thresholding type. Either RANGE or BINARY. |
[in] | upper | Upper threshold. Only used when the thresholding type is RANGE. |
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
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()) |
Implements ICPPKernel.