curfil  ..
 All Classes Functions Variables Typedefs Friends Groups Pages
Public Member Functions | Public Attributes | List of all members
curfil::ImageFeaturesAndThresholds< memory_space > Class Template Reference

Helper class to store a list of features and a list of threshold per feature in a compact mannersuch that it can be transferred between CPU and GPU. More...

#include <random_tree_image.h>

Public Member Functions

 ImageFeaturesAndThresholds (size_t numFeatures, size_t numThresholds, boost::shared_ptr< cuv::allocator > allocator)
 set the size of the features and thresholds arrays
template<class other_memory_space >
 ImageFeaturesAndThresholds (const ImageFeaturesAndThresholds< other_memory_space > &other)
 copy the features and thresholds of another object
template<class other_memory_space >
ImageFeaturesAndThresholdsoperator= (const ImageFeaturesAndThresholds< other_memory_space > &other)
 set the features and thresholds using another object attributes
ImageFeaturesAndThresholds copy () const
const cuv::ndarray< int8_t,
memory_space > 
features () const
cuv::ndarray< int8_t,
memory_space > 
features ()
cuv::ndarray< int8_t,
memory_space > 
types ()
cuv::ndarray< int8_t,
memory_space > 
offset1X ()
cuv::ndarray< int8_t,
memory_space > 
offset1Y ()
cuv::ndarray< int8_t,
memory_space > 
offset2X ()
cuv::ndarray< int8_t,
memory_space > 
offset2Y ()
cuv::ndarray< int8_t,
memory_space > 
region1X ()
cuv::ndarray< int8_t,
memory_space > 
region1Y ()
cuv::ndarray< int8_t,
memory_space > 
region2X ()
cuv::ndarray< int8_t,
memory_space > 
region2Y ()
cuv::ndarray< int8_t,
memory_space > 
channel1 ()
cuv::ndarray< int8_t,
memory_space > 
channel2 ()
cuv::ndarray< float, memory_space > thresholds ()
const cuv::ndarray< int8_t,
memory_space > 
types () const
const cuv::ndarray< int8_t,
memory_space > 
offset1X () const
const cuv::ndarray< int8_t,
memory_space > 
offset1Y () const
const cuv::ndarray< int8_t,
memory_space > 
offset2X () const
const cuv::ndarray< int8_t,
memory_space > 
offset2Y () const
const cuv::ndarray< int8_t,
memory_space > 
region1X () const
const cuv::ndarray< int8_t,
memory_space > 
region1Y () const
const cuv::ndarray< int8_t,
memory_space > 
region2X () const
const cuv::ndarray< int8_t,
memory_space > 
region2Y () const
const cuv::ndarray< int8_t,
memory_space > 
channel1 () const
const cuv::ndarray< int8_t,
memory_space > 
channel2 () const
const cuv::ndarray< float,
memory_space > 
thresholds () const
double getThreshold (size_t threshNr, size_t featNr) const
void setFeatureFunction (size_t feat, const ImageFeatureFunction &feature)
 fill the feature attributes using the given feature at the specified location
ImageFeatureFunction getFeatureFunction (size_t feat) const

Public Attributes

cuv::ndarray< int8_t,
memory_space > 
m_features
 array of features
cuv::ndarray< float, memory_space > m_thresholds
 array of thresholds

Detailed Description

template<class memory_space>
class curfil::ImageFeaturesAndThresholds< memory_space >

Helper class to store a list of features and a list of threshold per feature in a compact manner

such that it can be transferred between CPU and GPU.

Clients are not intended to use this class directly.

Definition at line 609 of file random_tree_image.h.

Member Function Documentation

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::channel1 ( )
inline
Returns
features first channels

Definition at line 738 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::channel1 ( ) const
inline
Returns
features first channels - const

Definition at line 822 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::channel2 ( )
inline
Returns
features second channels

Definition at line 745 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::channel2 ( ) const
inline
Returns
features second channels - const

Definition at line 829 of file random_tree_image.h.

template<class memory_space>
ImageFeaturesAndThresholds curfil::ImageFeaturesAndThresholds< memory_space >::copy ( ) const
inline
Returns
a copy of the object

Definition at line 654 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::features ( ) const
inline
Returns
features - const

Definition at line 661 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::features ( )
inline
Returns
features

Definition at line 668 of file random_tree_image.h.

template<class memory_space>
ImageFeatureFunction curfil::ImageFeaturesAndThresholds< memory_space >::getFeatureFunction ( size_t  feat) const
inline
Returns
feature that has feat as number

Definition at line 873 of file random_tree_image.h.

template<class memory_space>
double curfil::ImageFeaturesAndThresholds< memory_space >::getThreshold ( size_t  threshNr,
size_t  featNr 
) const
inline
Returns
threshold of the given feature

Definition at line 843 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::offset1X ( )
inline
Returns
x offsets of the first region

Definition at line 682 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::offset1X ( ) const
inline
Returns
x offsets of the first region - const

Definition at line 766 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::offset1Y ( )
inline
Returns
y offsets of the first region

Definition at line 689 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::offset1Y ( ) const
inline
Returns
y offsets of the first region - const

Definition at line 773 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::offset2X ( )
inline
Returns
x offsets of the second region

Definition at line 696 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::offset2X ( ) const
inline
Returns
x offsets of the second region - const

Definition at line 780 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::offset2Y ( )
inline
Returns
y offsets of the second region

Definition at line 703 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::offset2Y ( ) const
inline
Returns
y offsets of the second region - const

Definition at line 787 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::region1X ( )
inline
Returns
widths of the first region

Definition at line 710 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::region1X ( ) const
inline
Returns
widths of the first region - const

Definition at line 794 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::region1Y ( )
inline
Returns
heights of the first region

Definition at line 717 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::region1Y ( ) const
inline
Returns
heights of the first region - const

Definition at line 801 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::region2X ( )
inline
Returns
widths of the second region

Definition at line 724 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::region2X ( ) const
inline
Returns
widths of the second region - const

Definition at line 808 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::region2Y ( )
inline
Returns
heights of the second region

Definition at line 731 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::region2Y ( ) const
inline
Returns
heights of the second region - const

Definition at line 815 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<float, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::thresholds ( )
inline
Returns
thresholds

Definition at line 752 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<float, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::thresholds ( ) const
inline
Returns
thresholds - const

Definition at line 836 of file random_tree_image.h.

template<class memory_space>
cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::types ( )
inline
Returns
feature types

Definition at line 675 of file random_tree_image.h.

template<class memory_space>
const cuv::ndarray<int8_t, memory_space> curfil::ImageFeaturesAndThresholds< memory_space >::types ( ) const
inline
Returns
feature types - const

Definition at line 759 of file random_tree_image.h.


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