21.02
|
Basic function to execute HOG detector based on linear SVM. More...
#include <CLHOGDetector.h>
Public Member Functions | |
CLHOGDetector () | |
Default constructor. More... | |
CLHOGDetector (const CLHOGDetector &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLHOGDetector & | operator= (const CLHOGDetector &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
CLHOGDetector (CLHOGDetector &&)=default | |
Allow instances of this class to be moved. More... | |
CLHOGDetector & | operator= (CLHOGDetector &&)=default |
Allow instances of this class to be moved. More... | |
~CLHOGDetector () | |
Default destructor. More... | |
void | configure (const ICLTensor *input, const ICLHOG *hog, ICLDetectionWindowArray *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... | |
void | configure (const CLCompileContext &compile_context, const ICLTensor *input, const ICLHOG *hog, ICLDetectionWindowArray *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... | |
void | run () override |
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... | |
Basic function to execute HOG detector based on linear SVM.
This function calls the following OpenCL kernel:
Definition at line 48 of file CLHOGDetector.h.
CLHOGDetector | ( | ) |
Default constructor.
Definition at line 34 of file CLHOGDetector.cpp.
References CLHOGDetector::~CLHOGDetector().
|
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 CLHOGDetector::CLHOGDetector().
void configure | ( | const ICLTensor * | input, |
const ICLHOG * | hog, | ||
ICLDetectionWindowArray * | 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.
[in] | input | Input tensor. It is the output of CLHOGDescriptor. Data type supported: F32 |
[in] | hog | HOG data-object that describes the HOG descriptor |
[out] | detection_windows | Array of DetectionWindow used to store the detected objects |
[in] | detection_window_stride | Distance 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 41 of file CLHOGDetector.cpp.
References CLKernelLibrary::get().
void configure | ( | const CLCompileContext & | compile_context, |
const ICLTensor * | input, | ||
const ICLHOG * | hog, | ||
ICLDetectionWindowArray * | 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.
[in] | compile_context | The compile context to be used. |
[in] | input | Input tensor. It is the output of CLHOGDescriptor. Data type supported: F32 |
[in] | hog | HOG data-object that describes the HOG descriptor |
[out] | detection_windows | Array of DetectionWindow used to store the detected objects |
[in] | detection_window_stride | Distance 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 46 of file CLHOGDetector.cpp.
References CLScheduler::get().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
default |
Allow instances of this class to be moved.
|
overridevirtual |
Run the kernels contained in the function.
For Neon kernels:
For OpenCL kernels:
Implements IFunction.
Definition at line 58 of file CLHOGDetector.cpp.
References CLScheduler::enqueue(), CLScheduler::get(), IArray< T >::num_values(), CLScheduler::queue(), and IArray< T >::resize().