Compute Library
18.05
|
Basic function to execute canny edge on NEON. More...
#include <NECannyEdge.h>
Public Member Functions | |
NECannyEdge (std::shared_ptr< IMemoryManager > memory_manager=nullptr) | |
Constructor. More... | |
NECannyEdge (const NECannyEdge &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NECannyEdge & | operator= (const NECannyEdge &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
void | configure (ITensor *input, ITensor *output, int32_t upper_thr, int32_t lower_thr, int32_t gradient_size, int32_t norm_type, BorderMode border_mode, uint8_t constant_border_value=0, bool use_fp16=false) |
Initialise the function's source, destination, thresholds, gradient size, normalization type and border mode. More... | |
void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
virtual void | prepare () |
Prepare the function for executing. More... | |
Basic function to execute canny edge on NEON.
This function calls the following NEON kernels and functions:
Definition at line 53 of file NECannyEdge.h.
NECannyEdge | ( | std::shared_ptr< IMemoryManager > | memory_manager = nullptr | ) |
Constructor.
Initialize Sobel kernel to nullptr.
[in] | memory_manager | (Optional) Memory manager. |
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
void configure | ( | ITensor * | input, |
ITensor * | output, | ||
int32_t | upper_thr, | ||
int32_t | lower_thr, | ||
int32_t | gradient_size, | ||
int32_t | norm_type, | ||
BorderMode | border_mode, | ||
uint8_t | constant_border_value = 0 , |
||
bool | use_fp16 = false |
||
) |
Initialise the function's source, destination, thresholds, gradient size, normalization type and border mode.
[in,out] | input | Source tensor. Data type supported: U8. (Written to only for border_mode != UNDEFINED) |
[out] | output | Destination tensor. Data type supported: U8. |
[in] | upper_thr | Upper threhold used for the hysteresis |
[in] | lower_thr | Lower threshold used for the hysteresis. |
[in] | gradient_size | Gradient size (3, 5 or 7) |
[in] | norm_type | Normalization type. If 1, L1-Norm otherwise L2-Norm |
[in] | border_mode | Border mode to use for the convolution. |
[in] | constant_border_value | (Optional) Constant value to use for borders if border_mode is set to CONSTANT. |
[in] | use_fp16 | (Optional) If true the FP16 kernels will be used. If false F32 kernels are used. |
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
overridevirtual |
Run the kernels contained in the function.
For NEON kernels:
For OpenCL kernels:
Implements IFunction.