A simple LRU cache of RGB-D images on GPU. More...
#include <random_tree_image_gpu.h>
Public Member Functions | |
void | copyImages (size_t imageCacheSize, const std::set< const RGBDImage * > &images) |
Resize the cache and explicitly transfer the given images to the GPU. | |
void | copyImages (size_t imageCacheSize, const std::vector< const PixelInstance * > &samples) |
Collect the images for the given samples, resize the cache and transfer the collected images to the GPU. | |
Public Member Functions inherited from curfil::DeviceCache | |
std::map< const void *, size_t > & | getIdMap () |
bool | containsElement (const void *element) const |
size_t | getElementPos (const void *element) const |
void | clear () |
Clear the entire cache. | |
size_t | getTotalTransferTimeMircoseconds () const |
Protected Member Functions | |
virtual void | bind () |
bind texture to array | |
virtual void | unbind () |
unbind the texture | |
virtual void | allocArray () |
allocate a CUDA array | |
virtual void | freeArray () |
clear texture data and free the array | |
virtual void | transferElement (size_t pos, const void *element, cudaStream_t stream) |
transfer the element's value at the passed position to GPU | |
virtual std::string | getElementName (const void *element) const |
virtual std::string | getElementsName () const |
Protected Member Functions inherited from curfil::DeviceCache | |
bool | isBound () const |
void | setBound (bool bound) |
set the texture bound property | |
void | updateCacheSize (size_t cacheSize) |
set the cache size to the passed size | |
size_t | getCacheSize () const |
void | copyElements (size_t cacheSize, const std::set< const void * > &elements) |
resize the cache and transfer the elements to GPU |
A simple LRU cache of RGB-D images on GPU.
Definition at line 237 of file random_tree_image_gpu.h.
|
protectedvirtual |
Implements curfil::DeviceCache.
|
protectedvirtual |
Implements curfil::DeviceCache.