OpenCL implementation of HOG data-object.
More...
#include <CLHOG.h>
|
| 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...
|
|
| 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...
|
|
virtual | ~IHOG ()=default |
| Default virtual destructor. More...
|
|
OpenCL implementation of HOG data-object.
Definition at line 37 of file CLHOG.h.
const cl::Buffer& cl_buffer |
( |
| ) |
const |
|
overridevirtual |
Interface to be implemented by the child class to return a reference to the OpenCL buffer containing the hog's descriptor.
- Returns
- A reference to an OpenCL buffer containing the hog's descriptor
Implements ICLHOG.
Interface to be implemented by the child class to free the allocated cl buffer.
- Warning
- The buffer must have been allocated previously. Otherwise calling the function will fail.
Implements ICLHOG.
Interface to be implemented by the child class to return the HOG's metadata.
- Returns
- A pointer to the HOG's metadata.
Implements IHOG.
Allocate the HOG descriptor using the given HOG's metadata.
- Parameters
-
[in] | input | HOG's metadata used to allocate the HOG descriptor |
void map |
( |
bool |
blocking = true | ) |
|
Enqueue a map operation of the allocated buffer.
- Parameters
-
[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. |
Referenced by CLHOGAccessor::CLHOGAccessor().
Enqueue an unmap operation of the allocated and mapped buffer.
- Note
- This method simply enqueues the unmap operation, it is the caller's responsibility to flush the queue and make sure the unmap is finished before the memory is accessed by the device.
Referenced by CLHOGAccessor::~CLHOGAccessor().
The documentation for this class was generated from the following file: