21.02
|
Interface for OpenCL HOG data-object. More...
#include <ICLHOG.h>
Public Member Functions | |
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... | |
virtual const cl::Buffer & | cl_buffer () const =0 |
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing the hog's descriptor. 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... | |
virtual void | free ()=0 |
Interface to be implemented by the child class to free the allocated cl buffer. 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 const HOGInfo * | info () const =0 |
Interface to be implemented by the child class to return the HOG's metadata. More... | |
virtual | ~IHOG ()=default |
Default virtual destructor. More... | |
ICLHOG | ( | ) |
Prevent instances of this class from being copied (As this class contains pointers)
|
virtualdefault |
Default destructor.
|
pure virtual |
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing the hog's descriptor.
Implemented in CLHOG.
Referenced by CLHOGDetectorKernel::configure().
|
overridevirtual |
Pointer to the first element of the array which stores the linear SVM coefficients of HOG descriptor.
Implements IHOG.
Definition at line 44 of file ICLHOG.cpp.
Referenced by CLHOGAccessor::descriptor(), CLHOG::map(), and CLHOG::unmap().
|
pure virtual |
Interface to be implemented by the child class to free the allocated cl buffer.
Implemented in CLHOG.
void map | ( | cl::CommandQueue & | q, |
bool | blocking = true |
||
) |
Enqueue a map operation of the allocated buffer on the given queue.
[in,out] | q | The CL command queue to use for the mapping operation. |
[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 before using the returned mapping pointer. |
Definition at line 33 of file ICLHOG.cpp.
Referenced by CLHOG::map().
Prevent instances of this class from being copied (As this class contains pointers)
void unmap | ( | cl::CommandQueue & | q | ) |
Enqueue an unmap operation of the allocated and mapped buffer on the given queue.
[in,out] | q | The CL command queue to use for the mapping operation. |
Definition at line 38 of file ICLHOG.cpp.
Referenced by CLHOG::unmap().