21.02
|
Neon kernel to perform HOG detector kernel using linear SVM. More...
#include <NEHOGDetectorKernel.h>
Public Member Functions | |
const char * | name () const override |
Name of the kernel. More... | |
NEHOGDetectorKernel () | |
Default constructor. More... | |
NEHOGDetectorKernel (const NEHOGDetectorKernel &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEHOGDetectorKernel & | operator= (const NEHOGDetectorKernel &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
NEHOGDetectorKernel (NEHOGDetectorKernel &&)=delete | |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
NEHOGDetectorKernel & | operator= (NEHOGDetectorKernel &&)=delete |
Prevent instances of this class from being moved (As this class contains non movable objects) More... | |
~NEHOGDetectorKernel ()=default | |
Default destructor. More... | |
void | configure (const ITensor *input, const IHOG *hog, IDetectionWindowArray *detection_windows, const Size2D &detection_window_stride, float threshold=0.0f, uint16_t idx_class=0) |
Initialise the kernel's input, HOG data-object, detection window, the stride of the detection window, the threshold and index of the object to detect. More... | |
void | run (const Window &window, const ThreadInfo &info) override |
Execute the kernel on the passed window. 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 bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. 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... | |
Neon kernel to perform HOG detector kernel using linear SVM.
Definition at line 37 of file NEHOGDetectorKernel.h.
Default constructor.
Definition at line 38 of file NEHOGDetectorKernel.cpp.
Referenced by NEHOGDetectorKernel::name().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
default |
Default destructor.
Referenced by NEHOGDetectorKernel::name().
void configure | ( | const ITensor * | input, |
const IHOG * | hog, | ||
IDetectionWindowArray * | detection_windows, | ||
const Size2D & | detection_window_stride, | ||
float | threshold = 0.0f , |
||
uint16_t | idx_class = 0 |
||
) |
Initialise the kernel's input, HOG data-object, detection window, the stride of the detection window, the threshold and index of the object to detect.
[in] | input | Input tensor which stores the HOG descriptor obtained with NEHOGOrientationBinningKernel. Data type supported: F32. Number of channels supported: equal to the number of histogram bins per block |
[in] | hog | HOG data object used by NEHOGOrientationBinningKernel and NEHOGBlockNormalizationKernel |
[out] | detection_windows | Array of DetectionWindow. This array stores all 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 hog->info()->block_stride() |
[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 44 of file NEHOGDetectorKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_DATA_TYPE_NOT_IN, HOGInfo::block_size(), HOGInfo::block_stride(), IHOG::descriptor(), HOGInfo::descriptor_size(), HOGInfo::detection_window_size(), Window::DimX, Window::DimY, arm_compute::F32, arm_compute::floor_to_multiple(), Size2D::height, IHOG::info(), ITensor::info(), arm_compute::test::validation::input, IArray< T >::max_num_values(), ITensorInfo::num_channels(), Window::set(), ValidRegion::shape, arm_compute::test::validation::reference::threshold(), arm_compute::update_window_and_padding(), arm_compute::test::validation::valid_region, ITensorInfo::valid_region(), and Size2D::width.
Referenced by NEHOGDetectorKernel::name().
|
inlineoverridevirtual |
Name of the kernel.
Implements ICPPKernel.
Definition at line 40 of file NEHOGDetectorKernel.h.
References NEHOGDetectorKernel::configure(), arm_compute::test::validation::info, arm_compute::test::validation::input, NEHOGDetectorKernel::NEHOGDetectorKernel(), NEHOGDetectorKernel::operator=(), NEHOGDetectorKernel::run(), arm_compute::test::validation::reference::threshold(), IKernel::window(), and NEHOGDetectorKernel::~NEHOGDetectorKernel().
|
delete |
Prevent instances of this class from being copied (As this class contains pointers)
Referenced by NEHOGDetectorKernel::name().
|
delete |
Prevent instances of this class from being moved (As this class contains non movable objects)
|
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 97 of file NEHOGDetectorKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW, ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ARM_COMPUTE_UNUSED, arm_compute::test::validation::b, arm_compute::data_size_from_type(), ITensorInfo::data_type(), Window::DimY, arm_compute::execute_window_loop(), DetectionWindow::height, DetectionWindow::idx_class, ITensor::info(), IArray< T >::num_values(), IArray< T >::push_back(), DetectionWindow::score, ITensorInfo::strides_in_bytes(), DetectionWindow::width, IKernel::window(), DetectionWindow::x, and DetectionWindow::y.
Referenced by NEHOGDetectorKernel::name().