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 31 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 () const |
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 *¤t) |
CFeatures * | get_next_feature_obj () |
CFeatures * | get_next_feature_obj (CListElement *¤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 * | feature_list |
int32_t | num_vec |
default constructor
Definition at line 26 of file CombinedFeatures.cpp.
CCombinedFeatures | ( | const CCombinedFeatures & | orig | ) |
copy constructor
Definition at line 35 of file CombinedFeatures.cpp.
~CCombinedFeatures | ( | ) | [virtual] |
destructor
Definition at line 50 of file CombinedFeatures.cpp.
bool append_feature_obj | ( | CFeatures * | obj | ) |
append feature object
obj | feature object to append |
Definition at line 174 of file CombinedFeatures.h.
bool check_feature_obj_compatibility | ( | CCombinedFeatures * | comb_feat | ) |
check feature object compatibility
comb_feat | feature to check for compatibility |
Definition at line 73 of file CombinedFeatures.cpp.
bool delete_feature_obj | ( | ) |
delete feature object
Definition at line 190 of file CombinedFeatures.h.
CFeatures * duplicate | ( | ) | const [virtual] |
duplicate feature object
Implements CFeatures.
Definition at line 45 of file CombinedFeatures.cpp.
virtual EFeatureClass get_feature_class | ( | ) | [virtual] |
get feature class
Implements CFeatures.
Definition at line 63 of file CombinedFeatures.h.
virtual EFeatureType get_feature_type | ( | ) | [virtual] |
get feature type
Implements CFeatures.
Definition at line 54 of file CombinedFeatures.h.
CFeatures* get_first_feature_obj | ( | ) |
get first feature object
Definition at line 109 of file CombinedFeatures.h.
CFeatures* get_first_feature_obj | ( | CListElement *& | current | ) |
get first feature object
current | list of features |
Definition at line 119 of file CombinedFeatures.h.
CFeatures* get_last_feature_obj | ( | ) |
get last feature object
Definition at line 147 of file CombinedFeatures.h.
virtual const char* get_name | ( | void | ) | const [virtual] |
CFeatures* get_next_feature_obj | ( | CListElement *& | current | ) |
get next feature object
current | list of features |
Definition at line 138 of file CombinedFeatures.h.
CFeatures* get_next_feature_obj | ( | ) |
get next feature object
Definition at line 128 of file CombinedFeatures.h.
int32_t get_num_feature_obj | ( | ) |
get number of feature objects
Definition at line 206 of file CombinedFeatures.h.
virtual int32_t get_num_vectors | ( | ) | const [virtual] |
get number of feature vectors
Implements CFeatures.
Definition at line 72 of file CombinedFeatures.h.
virtual int32_t get_size | ( | ) | [virtual] |
get memory footprint of one feature
Implements CFeatures.
Definition at line 81 of file CombinedFeatures.h.
bool insert_feature_obj | ( | CFeatures * | obj | ) |
insert feature object
obj | feature object to insert |
Definition at line 157 of file CombinedFeatures.h.
void list_feature_objs | ( | ) |
list feature objects
Definition at line 55 of file CombinedFeatures.cpp.
CList* feature_list [protected] |
feature list
Definition at line 216 of file CombinedFeatures.h.
int32_t num_vec [protected] |
number of vectors must match between sub features
Definition at line 221 of file CombinedFeatures.h.