21.02
|
CPP kernel to perform in-place computation of euclidean distance on IDetectionWindowArray. More...
#include <CPPDetectionWindowNonMaximaSuppressionKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
CPPDetectionWindowNonMaximaSuppressionKernel () | |
Default constructor. More... | |
CPPDetectionWindowNonMaximaSuppressionKernel (const CPPDetectionWindowNonMaximaSuppressionKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CPPDetectionWindowNonMaximaSuppressionKernel & | operator= (const CPPDetectionWindowNonMaximaSuppressionKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CPPDetectionWindowNonMaximaSuppressionKernel (CPPDetectionWindowNonMaximaSuppressionKernel &&)=default | |
Allow instances of this class to be moved. More... | |
CPPDetectionWindowNonMaximaSuppressionKernel & | operator= (CPPDetectionWindowNonMaximaSuppressionKernel &&)=default |
Allow instances of this class to be moved. More... | |
~CPPDetectionWindowNonMaximaSuppressionKernel ()=default | |
Default destructor. More... | |
void | configure (IDetectionWindowArray *input_output, float min_distance) |
Initialise the kernel's input, output and the euclidean minimum distance. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. More... | |
bool | is_parallelisable () const override |
Indicates whether or not the kernel is parallelisable. 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... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. 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... | |
CPP kernel to perform in-place computation of euclidean distance on IDetectionWindowArray.
Definition at line 39 of file CPPDetectionWindowNonMaximaSuppressionKernel.h.
Default constructor.
Definition at line 60 of file CPPDetectionWindowNonMaximaSuppressionKernel.cpp.
Referenced by CPPDetectionWindowNonMaximaSuppressionKernel::name().
|
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.
Referenced by CPPDetectionWindowNonMaximaSuppressionKernel::name().
void configure | ( | IDetectionWindowArray * | input_output, |
float | min_distance | ||
) |
Initialise the kernel's input, output and the euclidean minimum distance.
[in,out] | input_output | Input/Output array of DetectionWindow |
[in] | min_distance | Radial Euclidean distance for non-maxima suppression |
Definition at line 70 of file CPPDetectionWindowNonMaximaSuppressionKernel.cpp.
References ARM_COMPUTE_ERROR_ON.
Referenced by NEHOGMultiDetection::configure(), CLHOGMultiDetection::configure(), and CPPDetectionWindowNonMaximaSuppressionKernel::name().
|
overridevirtual |
Indicates whether or not the kernel is parallelisable.
If the kernel is parallelisable then the window returned by window() can be split into sub-windows which can then be run in parallel.
If the kernel is not parallelisable then only the window returned by window() can be passed to run()
Reimplemented from IKernel.
Definition at line 65 of file CPPDetectionWindowNonMaximaSuppressionKernel.cpp.
Referenced by CPPDetectionWindowNonMaximaSuppressionKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 42 of file CPPDetectionWindowNonMaximaSuppressionKernel.h.
References CPPDetectionWindowNonMaximaSuppressionKernel::configure(), CPPDetectionWindowNonMaximaSuppressionKernel::CPPDetectionWindowNonMaximaSuppressionKernel(), arm_compute::test::validation::info, CPPDetectionWindowNonMaximaSuppressionKernel::is_parallelisable(), CPPDetectionWindowNonMaximaSuppressionKernel::operator=(), CPPDetectionWindowNonMaximaSuppressionKernel::run(), IKernel::window(), and CPPDetectionWindowNonMaximaSuppressionKernel::~CPPDetectionWindowNonMaximaSuppressionKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by CPPDetectionWindowNonMaximaSuppressionKernel::name().
|
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 80 of file CPPDetectionWindowNonMaximaSuppressionKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MISMATCHING_WINDOWS, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ARM_COMPUTE_UNUSED, IArray< T >::at(), IArray< T >::buffer(), DetectionWindow::height, DetectionWindow::idx_class, IArray< T >::num_values(), IArray< T >::resize(), DetectionWindow::score, DetectionWindow::width, IKernel::window(), DetectionWindow::x, and DetectionWindow::y.
Referenced by CPPDetectionWindowNonMaximaSuppressionKernel::name().