Computes magnitude and quantised phase from inputs gradients.
More...
#include <NECannyEdgeKernel.h>
Computes magnitude and quantised phase from inputs gradients.
Definition at line 36 of file NECannyEdgeKernel.h.
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
Initialise the kernel's sources, destinations and border mode.
- Note
- gx, gy and magnitude must all be the same size (either 16 or 32)
- Parameters
-
[in] | gx | Source tensor - Gx component. Data type supported: S16/S32. |
[in] | gy | Source tensor - Gy component. Data type supported: same as gx . |
[out] | magnitude | Destination tensor - Magnitude. Data type supported: U16 (if the data type of gx is S16) / U32 (if the data type of gx is S32). |
[out] | phase | Destination tensor - Quantized phase. Data type supported: U8. |
[in] | norm_type | Normalization type. If 1, L1-Norm otherwise L2-Norm |
Reimplemented in NEGradientFP16Kernel.
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: