The class CombinedFeatures is used to combine a number of of feature objects into a single CombinedFeatures object.
It keeps pointers to the added sub-features and is especially useful to combine kernels working on different domains (c.f. CCombinedKernel) and to combine kernels looking at independent features.
Definition at line 27 of file CombinedFeatures.h.
Public Member Functions | |
CCombinedFeatures () | |
CCombinedFeatures (const CCombinedFeatures &orig) | |
virtual CFeatures * | duplicate () const |
virtual | ~CCombinedFeatures () |
virtual EFeatureType | get_feature_type () |
virtual EFeatureClass | get_feature_class () |
virtual int32_t | get_num_vectors () |
virtual int32_t | get_size () |
void | list_feature_objs () |
bool | check_feature_obj_compatibility (CCombinedFeatures *comb_feat) |
CFeatures * | get_first_feature_obj () |
CFeatures * | get_first_feature_obj (CListElement< CFeatures * > *¤t) |
CFeatures * | get_next_feature_obj () |
CFeatures * | get_next_feature_obj (CListElement< CFeatures * > *¤t) |
CFeatures * | get_last_feature_obj () |
bool | insert_feature_obj (CFeatures *obj) |
bool | append_feature_obj (CFeatures *obj) |
bool | delete_feature_obj () |
int32_t | get_num_feature_obj () |
virtual const char * | get_name () const |
Protected Attributes | |
CList< CFeatures * > * | feature_list |
int32_t | num_vec |
CCombinedFeatures::CCombinedFeatures | ( | ) |
default constructor
Definition at line 17 of file CombinedFeatures.cpp.
CCombinedFeatures::CCombinedFeatures | ( | const CCombinedFeatures & | orig | ) |
copy constructor
Definition at line 24 of file CombinedFeatures.cpp.
CCombinedFeatures::~CCombinedFeatures | ( | ) | [virtual] |
destructor
Definition at line 37 of file CombinedFeatures.cpp.
bool CCombinedFeatures::append_feature_obj | ( | CFeatures * | obj | ) |
append feature object
obj | feature object to append |
Definition at line 167 of file CombinedFeatures.h.
bool CCombinedFeatures::check_feature_obj_compatibility | ( | CCombinedFeatures * | comb_feat | ) |
check feature object compatibility
comb_feat | feature to check for compatibility |
Definition at line 60 of file CombinedFeatures.cpp.
bool CCombinedFeatures::delete_feature_obj | ( | ) |
delete feature object
Definition at line 183 of file CombinedFeatures.h.
CFeatures * CCombinedFeatures::duplicate | ( | ) | const [virtual] |
duplicate feature object
Implements CFeatures.
Definition at line 32 of file CombinedFeatures.cpp.
virtual EFeatureClass CCombinedFeatures::get_feature_class | ( | ) | [virtual] |
get feature class
Implements CFeatures.
Definition at line 57 of file CombinedFeatures.h.
virtual EFeatureType CCombinedFeatures::get_feature_type | ( | ) | [virtual] |
get feature type
Implements CFeatures.
Definition at line 48 of file CombinedFeatures.h.
CFeatures* CCombinedFeatures::get_first_feature_obj | ( | CListElement< CFeatures * > *& | current | ) |
get first feature object
current | list of features |
Definition at line 112 of file CombinedFeatures.h.
CFeatures* CCombinedFeatures::get_first_feature_obj | ( | ) |
get first feature object
Definition at line 102 of file CombinedFeatures.h.
CFeatures* CCombinedFeatures::get_last_feature_obj | ( | ) |
get last feature object
Definition at line 140 of file CombinedFeatures.h.
virtual const char* CCombinedFeatures::get_name | ( | ) | const [virtual] |
CFeatures* CCombinedFeatures::get_next_feature_obj | ( | CListElement< CFeatures * > *& | current | ) |
get next feature object
current | list of features |
Definition at line 131 of file CombinedFeatures.h.
CFeatures* CCombinedFeatures::get_next_feature_obj | ( | ) |
get next feature object
Definition at line 121 of file CombinedFeatures.h.
int32_t CCombinedFeatures::get_num_feature_obj | ( | ) |
get number of feature objects
Definition at line 199 of file CombinedFeatures.h.
virtual int32_t CCombinedFeatures::get_num_vectors | ( | ) | [virtual] |
get number of feature vectors
Implements CFeatures.
Definition at line 66 of file CombinedFeatures.h.
virtual int32_t CCombinedFeatures::get_size | ( | ) | [virtual] |
get memory footprint of one feature
Implements CFeatures.
Definition at line 75 of file CombinedFeatures.h.
bool CCombinedFeatures::insert_feature_obj | ( | CFeatures * | obj | ) |
insert feature object
obj | feature object to insert |
Definition at line 150 of file CombinedFeatures.h.
void CCombinedFeatures::list_feature_objs | ( | ) |
list feature objects
Definition at line 42 of file CombinedFeatures.cpp.
CList<CFeatures*>* CCombinedFeatures::feature_list [protected] |
feature list
Definition at line 209 of file CombinedFeatures.h.
int32_t CCombinedFeatures::num_vec [protected] |
number of vectors must match between sub features
Definition at line 214 of file CombinedFeatures.h.