24 #ifndef ARM_COMPUTE_NEWARPKERNEL_H 25 #define ARM_COMPUTE_NEWARPKERNEL_H 74 virtual void warp_undefined(
const Window &window) = 0;
79 virtual void warp_constant(
const Window &window) = 0;
84 virtual void warp_replicate(
const Window &window) = 0;
93 uint8_t _constant_border_value;
94 std::array<float, 9> _matrix;
100 template <InterpolationPolicy
interpolation>
104 const char *
name()
const override 106 return "NEWarpAffineKernel";
110 void warp_constant(
const Window &window)
override;
111 void warp_replicate(
const Window &window)
override;
117 template <InterpolationPolicy
interpolation>
121 const char *
name()
const override 123 return "NEWarpPerspectiveKernel";
127 void warp_constant(
const Window &window)
override;
128 void warp_replicate(
const Window &window)
override;
BorderMode
Methods available to handle borders.
const Window & window() const
The maximum window the kernel can be executed on.
Container for 2D border size.
Common interface for all kernels implemented in C++.
void run(const Window &window, const ThreadInfo &info) override
Execute the kernel on the passed window.
Common interface for warp affine and warp perspective.
INEWarpKernel()
Default constructor.
Interface for Neon tensor.
Copyright (c) 2017-2021 Arm Limited.
~INEWarpKernel()=default
Default destructor.
Template interface for the kernel to compute warp affine.
BorderSize border_size() const override
The size of the border for that kernel.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)
Information about executing thread and CPU.
INEWarpKernel & operator=(const INEWarpKernel &)=delete
Prevent instances of this class from being copied (As this class contains pointers) ...
Describe a multidimensional execution window.
virtual const char * name() const =0
Name of the kernel.
Template interface for the kernel to compute warp perspective.
virtual void configure(const ITensor *input, ITensor *output, const std::array< float, 9 > &matrix, BorderMode border_mode, uint8_t constant_border_value)
Initialise the kernel's input, output and border mode.