OpenCL kernel to perform Gradient computation.
More...
#include <CLCannyEdgeKernel.h>
|
| CLGradientKernel () |
| Constructor. More...
|
|
| CLGradientKernel (const CLGradientKernel &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers). More...
|
|
CLGradientKernel & | operator= (const CLGradientKernel &)=delete |
| Prevent instances of this class from being copied (As this class contains pointers). More...
|
|
void | configure (const ICLTensor *gx, const ICLTensor *gy, ICLTensor *magnitude, ICLTensor *phase, int32_t norm_type) |
| Initialise the kernel's sources, destinations and border mode. More...
|
|
void | run (const Window &window, cl::CommandQueue &queue) override |
| Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue. More...
|
|
| ICLKernel () |
| Constructor. More...
|
|
cl::Kernel & | kernel () |
| Returns a reference to the OpenCL kernel of this object. More...
|
|
void | add_1D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window) |
| Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
|
|
void | add_2D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window) |
| Add the passed 2D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
|
|
void | add_3D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window) |
| Add the passed 3D tensor's parameters to the object's kernel's arguments starting from the index idx. More...
|
|
unsigned int | num_arguments_per_1D_tensor () const |
| Returns the number of arguments enqueued per 1D tensor object. More...
|
|
unsigned int | num_arguments_per_2D_tensor () const |
| Returns the number of arguments enqueued per 2D tensor object. More...
|
|
unsigned int | num_arguments_per_3D_tensor () const |
| Returns the number of arguments enqueued per 3D tensor object. More...
|
|
template<typename T > |
void | add_argument (unsigned int &idx, T value) |
| Add the passed parameters to the object's kernel's arguments starting from the index idx. More...
|
|
| 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...
|
|
OpenCL kernel to perform Gradient computation.
Definition at line 37 of file CLCannyEdgeKernel.h.
Prevent instances of this class from being copied (As this class contains pointers).
Initialise the kernel's sources, destinations and border mode.
- Note
- gx, gy and mag must all be the same size (either 16 or 32).
- Parameters
-
[in] | gx | Source tensor - Gx component. Data types supported: S16/S32. |
[in] | gy | Source tensor - Gy component. Data types supported: Same as gx. |
[out] | magnitude | Destination tensor - Magnitude. Data types supported: U16/U32. Must match the pixel size of gx, gy. |
[out] | phase | Destination tensor - Quantized phase. Data types supported: U8. |
[in] | norm_type | Normalization type. if 1, L1-Norm otherwise L2-Norm. |
Prevent instances of this class from being copied (As this class contains pointers).
void run |
( |
const Window & |
window, |
|
|
cl::CommandQueue & |
queue |
|
) |
| |
|
overridevirtual |
Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue.
- Note
- The queue is not flushed by this method, and therefore the kernel will not have been executed by the time this method returns.
- Parameters
-
[in] | window | Region on which to execute the kernel. (Must be a valid region of the window returned by window()). |
[in,out] | queue | Command queue on which to enqueue the kernel. |
Implements ICLKernel.
The documentation for this class was generated from the following file: