ARM Compute Library
17.04
|
Basic function to execute canny edge on OpenCL. More...
#include <CLCannyEdge.h>
Public Member Functions | |
CLCannyEdge () | |
Constructor. More... | |
void | configure (ICLTensor *input, ICLTensor *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) |
Initialise the function's source, destination, thresholds, gradient size, normalization type and border mode. More... | |
virtual void | run () override |
Run the kernels contained in the function. More... | |
Public Member Functions inherited from IFunction | |
virtual | ~IFunction ()=default |
Destructor. More... | |
Basic function to execute canny edge on OpenCL.
This function calls the following OpenCL kernels and functions:
Definition at line 48 of file CLCannyEdge.h.
CLCannyEdge | ( | ) |
Constructor.
void configure | ( | ICLTensor * | input, |
ICLTensor * | 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 |
||
) |
Initialise the function's source, destination, thresholds, gradient size, normalization type and border mode.
[in,out] | input | Source tensor. Data types supported: U8. (Written to only for border_mode != UNDEFINED) |
[out] | output | Destination tensor. Data types supported: U8. |
[in] | upper_thr | Upper threshold 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. |
|
overridevirtual |
Run the kernels contained in the function.
For NEON kernels:
For OpenCL kernels:
Implements IFunction.