Compute Library
 21.02
NEHOGDetector Class Reference

Basic function to execute HOG detector based on linear SVM. More...

#include <NEHOGDetector.h>

Collaboration diagram for NEHOGDetector:
[legend]

Public Member Functions

 NEHOGDetector ()=default
 Constructor. More...
 
 NEHOGDetector (const NEHOGDetector &)=delete
 Prevent instances of this class from being copied. More...
 
 NEHOGDetector (NEHOGDetector &&)=default
 Default move constructor. More...
 
NEHOGDetectoroperator= (const NEHOGDetector &)=delete
 Prevent instances of this class from being copied. More...
 
NEHOGDetectoroperator= (NEHOGDetector &&)=default
 Default move assignment operator. More...
 
 ~NEHOGDetector ()
 Destructor. More...
 
void configure (const ITensor *input, const IHOG *hog, IDetectionWindowArray *detection_windows, const Size2D &detection_window_stride, float threshold=0.0f, size_t idx_class=0)
 Initialise the kernel's input, output, HOG data object, detection window stride, threshold and index class. More...
 
- Public Member Functions inherited from INESimpleFunctionNoBorder
 INESimpleFunctionNoBorder (IRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 INESimpleFunctionNoBorder (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 INESimpleFunctionNoBorder (INESimpleFunctionNoBorder &&)=default
 Default move constructor. More...
 
INESimpleFunctionNoBorderoperator= (const INESimpleFunctionNoBorder &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
INESimpleFunctionNoBorderoperator= (INESimpleFunctionNoBorder &&)=default
 Default move assignment operator. More...
 
 ~INESimpleFunctionNoBorder ()
 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 HOG detector based on linear SVM.

This function calls the following Neon kernel:

  1. NEHOGDetectorKernel
Deprecated:
This function is deprecated and is intended to be removed in 21.05 release

Definition at line 42 of file NEHOGDetector.h.

Constructor & Destructor Documentation

◆ NEHOGDetector() [1/3]

NEHOGDetector ( )
default

Constructor.

◆ NEHOGDetector() [2/3]

NEHOGDetector ( const NEHOGDetector )
delete

Prevent instances of this class from being copied.

◆ NEHOGDetector() [3/3]

NEHOGDetector ( NEHOGDetector &&  )
default

Default move constructor.

◆ ~NEHOGDetector()

~NEHOGDetector ( )
default

Destructor.

Member Function Documentation

◆ configure()

void configure ( const ITensor input,
const IHOG hog,
IDetectionWindowArray detection_windows,
const Size2D detection_window_stride,
float  threshold = 0.0f,
size_t  idx_class = 0 
)

Initialise the kernel's input, output, HOG data object, detection window stride, threshold and index class.

Attention
The function does not reset the number of values in IDetectionWindowArray so it is caller's responsibility to clear it.
Parameters
[in]inputInput tensor. It is the output of NEHOGDescriptor. Data type supported: F32
[in]hogHOG data-object that describes the HOG descriptor
[out]detection_windowsArray of DetectionWindow used to store the detected objects
[in]detection_window_strideDistance in pixels between 2 consecutive detection windows in x and y directions. It must be multiple of the block stride stored in hog
[in]threshold(Optional) Threshold for the distance between features and SVM classifying plane
[in]idx_class(Optional) Index of the class used for evaluating which class the detection window belongs to

Definition at line 32 of file NEHOGDetector.cpp.

33 {
34  auto k = std::make_unique<NEHOGDetectorKernel>();
35  k->configure(input, hog, detection_windows, detection_window_stride, threshold, idx_class);
36  _kernel = std::move(k);
37 }
SimpleTensor< T > threshold(const SimpleTensor< T > &src, T threshold, T false_value, T true_value, ThresholdType type, T upper)
Definition: Threshold.cpp:35

◆ operator=() [1/2]

NEHOGDetector& operator= ( const NEHOGDetector )
delete

Prevent instances of this class from being copied.

◆ operator=() [2/2]

NEHOGDetector& operator= ( NEHOGDetector &&  )
default

Default move assignment operator.


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