21.02
|
Common interface for warp affine and warp perspective. More...
#include <NEWarpKernel.h>
Public Member Functions | |
INEWarpKernel () | |
Default constructor. More... | |
INEWarpKernel (const INEWarpKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEWarpKernel & | operator= (const INEWarpKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
INEWarpKernel (INEWarpKernel &&)=default | |
Allow instances of this class to be moved. More... | |
INEWarpKernel & | operator= (INEWarpKernel &&)=default |
Allow instances of this class to be moved. More... | |
~INEWarpKernel ()=default | |
Default destructor. More... | |
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. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
BorderSize | border_size () const override |
The size of the border for that kernel. More... | |
Public Member Functions inherited from ICPPKernel | |
virtual | ~ICPPKernel ()=default |
Default destructor. More... | |
virtual void | run_nd (const Window &window, const ThreadInfo &info, const Window &thread_locator) |
legacy compatibility layer for implemantions which do not support thread_locator In these cases we simply narrow the interface down the legacy version More... | |
virtual void | run_op (ITensorPack &tensors, const Window &window, const ThreadInfo &info) |
Execute the kernel on the passed window. More... | |
virtual const char * | name () const =0 |
Name of the kernel. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
Common interface for warp affine and warp perspective.
Definition at line 37 of file NEWarpKernel.h.
INEWarpKernel | ( | ) |
Default constructor.
Definition at line 50 of file NEWarpKernel.cpp.
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
default |
Default destructor.
|
overridevirtual |
The size of the border for that kernel.
Reimplemented from IKernel.
Definition at line 55 of file NEWarpKernel.cpp.
Referenced by INEWarpKernel::configure().
|
virtual |
Initialise the kernel's input, output and border mode.
[in] | input | Source tensor. Data type supported: U8. |
[out] | output | Destination tensor. Data type supported: U8. |
[in] | matrix | The perspective or affine matrix to use. Must be 2x3 for affine and 3x3 for perspective of type float. The matrix argument requires 9 values, for the affine case the last 3 values are ignored. |
[in] | border_mode | Strategy to use for borders |
[in] | constant_border_value | Constant value used for filling the border. |
Definition at line 70 of file NEWarpKernel.cpp.
References ValidRegion::anchor, ARM_COMPUTE_ERROR, ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN, arm_compute::BILINEAR, INEWarpKernel::border_size(), BorderSize::bottom, arm_compute::calculate_max_window(), arm_compute::CONSTANT, Window::DimX, Window::DimY, arm_compute::execute_window_loop(), ITensor::info(), arm_compute::test::validation::input, BorderSize::left, arm_compute::NEAREST_NEIGHBOR, arm_compute::scale_helpers::pixel_bilinear_c1(), Iterator::ptr(), arm_compute::REPLICATE, BorderSize::right, Window::set(), ValidRegion::shape, Window::Dimension::start(), ITensorInfo::strides_in_bytes(), ITensorInfo::tensor_shape(), BorderSize::top, arm_compute::U, arm_compute::U8, arm_compute::UNDEFINED, arm_compute::update_window_and_padding(), ITensorInfo::valid_region(), IKernel::window(), Window::x(), Window::y(), and Window::z().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Execute the kernel on the passed window.
[in] | window | Region on which to execute the kernel. (Must be a region of the window returned by window()) |
[in] | info | Info about executing thread and CPU. |
Reimplemented from ICPPKernel.
Definition at line 60 of file NEWarpKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ARM_COMPUTE_UNUSED, and IKernel::window().