21.02
|
OpenCL implementation of HOG data-object. More...
#include <CLHOG.h>
Public Member Functions | |
CLHOG () | |
Default constructor. More... | |
void | init (const HOGInfo &input) |
Allocate the HOG descriptor using the given HOG's metadata. More... | |
void | map (bool blocking=true) |
Enqueue a map operation of the allocated buffer. More... | |
void | unmap () |
Enqueue an unmap operation of the allocated and mapped buffer. More... | |
void | free () override |
Interface to be implemented by the child class to free the allocated cl buffer. More... | |
const HOGInfo * | info () const override |
Interface to be implemented by the child class to return the HOG's metadata. More... | |
const cl::Buffer & | cl_buffer () const override |
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing the hog's descriptor. More... | |
Public Member Functions inherited from ICLHOG | |
ICLHOG () | |
Default constructor. More... | |
ICLHOG (const ICLHOG &)=delete | |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLHOG & | operator= (const ICLHOG &)=delete |
Prevent instances of this class from being copied (As this class contains pointers) More... | |
ICLHOG (ICLHOG &&)=default | |
Allow instances of this class to be moved. More... | |
ICLHOG & | operator= (ICLHOG &&)=default |
Allow instances of this class to be moved. More... | |
virtual | ~ICLHOG ()=default |
Default destructor. More... | |
void | map (cl::CommandQueue &q, bool blocking=true) |
Enqueue a map operation of the allocated buffer on the given queue. More... | |
void | unmap (cl::CommandQueue &q) |
Enqueue an unmap operation of the allocated and mapped buffer on the given queue. More... | |
float * | descriptor () const override |
Pointer to the first element of the array which stores the linear SVM coefficients of HOG descriptor. More... | |
Public Member Functions inherited from IHOG | |
virtual | ~IHOG ()=default |
Default virtual destructor. More... | |
CLHOG | ( | ) |
|
overridevirtual |
|
overridevirtual |
Interface to be implemented by the child class to free the allocated cl buffer.
Implements ICLHOG.
Definition at line 45 of file CLHOG.cpp.
References ARM_COMPUTE_ERROR_ON.
|
overridevirtual |
Interface to be implemented by the child class to return the HOG's metadata.
Implements IHOG.
Definition at line 52 of file CLHOG.cpp.
Referenced by CLHOG::init(), and CLHOG::unmap().
void init | ( | const HOGInfo & | input | ) |
Allocate the HOG descriptor using the given HOG's metadata.
Definition at line 38 of file CLHOG.cpp.
References ARM_COMPUTE_ERROR_ON, CLScheduler::get(), CLHOG::info(), and arm_compute::test::validation::input.
void map | ( | bool | blocking = true | ) |
Enqueue a map operation of the allocated buffer.
[in] | blocking | If true, then the mapping will be ready to use by the time this method returns, else it is the caller's responsibility to flush the queue and wait for the mapping operation to have completed. |
Definition at line 62 of file CLHOG.cpp.
References ARM_COMPUTE_ERROR_ON, ICLHOG::descriptor(), CLScheduler::get(), and ICLHOG::map().
Referenced by CLHOGAccessor::CLHOGAccessor().
void unmap | ( | ) |
Enqueue an unmap operation of the allocated and mapped buffer.
Definition at line 68 of file CLHOG.cpp.
References ARM_COMPUTE_ERROR_ON, ICLHOG::descriptor(), CLScheduler::get(), CLHOG::info(), and ICLHOG::unmap().
Referenced by CLHOGAccessor::~CLHOGAccessor().