NEON kernel to perform scaling on a tensor.
More...
#include <NEScaleKernel.h>
NEON kernel to perform scaling on a tensor.
Definition at line 35 of file NEScaleKernel.h.
Prevent instances of this class from being copied (As this class contains pointers)
Allow instances of this class to be moved.
The size of the border for that kernel.
- Returns
- The width in number of elements of the border.
Reimplemented from IKernel.
Initialise the kernel's inputs, output and interpolation policy.
- Note
- dx, dy and offsets have the same dimensions (width and height) of the output tensor
- Parameters
-
[in] | input | Source tensor. Data types supported: U8 or S16. |
[in] | dx | Pixel's distance between the X real coordinate and the smallest X following integer. Data type supported: F32 |
[in] | dy | Pixel's distance between the Y real coordinate and the smallest Y following integer. Data type supported: F32 |
[in] | offsets | Offset to access the pixel with NEAREST interpolation or the top-left pixel with BILINEAR interpolation in the input tensor. Data type supported: S32. |
[out] | output | Destination tensor. Data types supported: U8 or S16. All but the lowest two dimensions must be the same size as in the input tensor, i.e. scaling is only performed within the XY-plane. |
[in] | policy | Interpolation type to use |
[in] | border_undefined | True if the border mode is undefined. False if it's replicate or constant. |
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: