Compute Library
 21.02
NENonMaximaSuppression3x3 Class Reference

Basic function to execute non-maxima suppression over a 3x3 window. More...

#include <NENonMaximaSuppression3x3.h>

Collaboration diagram for NENonMaximaSuppression3x3:
[legend]

Public Member Functions

void configure (ITensor *input, ITensor *output, BorderMode border_mode)
 Initialise the function's source, destinations and border mode. More...
 
- Public Member Functions inherited from INESimpleFunction
 INESimpleFunction ()
 Constructor. More...
 
 INESimpleFunction (const INESimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 INESimpleFunction (INESimpleFunction &&)=default
 Default move constructor. More...
 
INESimpleFunctionoperator= (const INESimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionoperator= (INESimpleFunction &&)=default
 Default move assignment operator. More...
 
 ~INESimpleFunction ()
 Default destructor. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Detailed Description

Basic function to execute non-maxima suppression over a 3x3 window.

This function calls the following Neon kernels:

  1. NEFillBorderKernel (executed if border_mode == CONSTANT or border_mode == REPLICATE)
  2. NENonMaximaSuppression3x3Kernel
Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 42 of file NENonMaximaSuppression3x3.h.

Member Function Documentation

◆ configure()

void configure ( ITensor input,
ITensor output,
BorderMode  border_mode 
)

Initialise the function's source, destinations and border mode.

Note
The implementation supports just 2 border modes: UNDEFINED and CONSTANT The constant values used with CONSTANT border mode is 0
Parameters
[in,out]inputSource tensor. Data type supported: U8/F32. (Written to only for border_mode != UNDEFINED)
[out]outputDestination for the Non-Maxima suppressions 3x3. Data type supported: same as input
[in]border_modeBorder mode to use for non-maxima suppression. The implementation supports just 2 border modes: UNDEFINED and CONSTANT

Definition at line 33 of file NENonMaximaSuppression3x3.cpp.

References arm_compute::test::validation::b, arm_compute::CONSTANT, and arm_compute::UNDEFINED.

Referenced by NEHarrisCorners::configure().

34 {
35  auto k = std::make_unique<NENonMaximaSuppression3x3Kernel>();
36  k->configure(input, output, border_mode == BorderMode::UNDEFINED);
37  _kernel = std::move(k);
38 
39  auto b = std::make_unique<NEFillBorderKernel>();
40  if(border_mode != BorderMode::UNDEFINED)
41  {
42  b->configure(input, BorderSize(1), BorderMode::CONSTANT, static_cast<float>(0.f));
43  }
44  else
45  {
46  b->configure(input, BorderSize(1), BorderMode::UNDEFINED, static_cast<float>(0.f));
47  }
48  _border_handler = std::move(b);
49 }
SimpleTensor< float > b
Definition: DFT.cpp:157
Borders are left undefined.

The documentation for this class was generated from the following files: