curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | List of all members
curfil::TreeNodes Class Reference

Helper class to map random forest data to texture cache on GPU. More...

#include <random_tree_image_gpu.h>

Public Member Functions

 TreeNodes (const TreeNodes &other)
 Prepare the random forest data from the given nodes such that it can be transferred to the GPU.
 TreeNodes (const boost::shared_ptr< const RandomTree< PixelInstance, ImageFeatureFunction > > &tree)
 Prepare the random forest data from the given tree such that it can be transferred to the GPU.
size_t getTreeId () const
size_t numNodes () const
size_t numLabels () const
size_t sizePerNode () const
cuv::ndarray< int8_t,
cuv::host_memory_space > & 
data ()
const cuv::ndarray< int8_t,
cuv::host_memory_space > & 
data () const

Detailed Description

Helper class to map random forest data to texture cache on GPU.

Definition at line 29 of file random_tree_image_gpu.h.

Member Function Documentation

cuv::ndarray<int8_t, cuv::host_memory_space>& curfil::TreeNodes::data ( )
inline
Returns
a reference to the n-d array of the internal data structure that can be transferred to the GPU.

Definition at line 74 of file random_tree_image_gpu.h.

const cuv::ndarray<int8_t, cuv::host_memory_space>& curfil::TreeNodes::data ( ) const
inline
Returns
a reference to the n-d array of the internal data structure that can be transferred to the GPU. - const

Definition at line 81 of file random_tree_image_gpu.h.

size_t curfil::TreeNodes::getTreeId ( ) const
inline
Returns
The of the tree in random forest.

Definition at line 46 of file random_tree_image_gpu.h.

size_t curfil::TreeNodes::numLabels ( ) const
inline
Returns
the number of labels (classes) that existed in the training dataset.

Definition at line 60 of file random_tree_image_gpu.h.

size_t curfil::TreeNodes::numNodes ( ) const
inline
Returns
The total number of nodes in the tree.

Definition at line 53 of file random_tree_image_gpu.h.

size_t curfil::TreeNodes::sizePerNode ( ) const
inline
Returns
the per-node size in bytes

Definition at line 67 of file random_tree_image_gpu.h.


The documentation for this class was generated from the following file: