KSquare Utilities
ImageFeaturesDataIndexed.h
Go to the documentation of this file.
1 #ifndef _IMAGEFEATURESDATAINDEXED_
2 #define _IMAGEFEATURESDATAINDEXED_
3 
4 
5 #include "RBTree.h"
6 #include "KKStr.h"
7 
8 
9 
10 namespace KKMLL
11 {
12 
13 
15  class FeatureVector;
17  #endif
18 
19 
21  class FeatureVectorList;
23  #endif
24 
25 
26 
27  class ImageDataTreeEntry;
28  class ExtractFeatureData;
30 
32  {
33  public:
35 
37 
38 
39  void RBInsert (FeatureVectorPtr example);
40 
41  FeatureVectorPtr GetEqual (FeatureVectorPtr example);
42 
43  private:
44  };
45 
46 
48 
49 
50 
51 
52 
53 
55  {
56  public:
57  ImageFeaturesNodeKey (FeatureVectorPtr _example);
58 
59  bool operator== (const ImageFeaturesNodeKey& rightNode) const;
60  bool operator< (const ImageFeaturesNodeKey& rightNode) const;
61  bool operator> (const ImageFeaturesNodeKey& rightNode) const;
62 
63  kkint32 CompareTwoExamples (const FeatureVectorPtr i1,
64  const FeatureVectorPtr i2
65  ) const;
66 
67  FeatureVectorPtr example;
68  }; /* ImageFeaturesNodeKey */
69 
70 
71 
72 
74  {
75  public:
76  ImageDataTreeEntry (FeatureVectorPtr _example);
77 
78  const ImageFeaturesNodeKey& NodeKey () const {return nodeKey;}
79 
80  FeatureVectorPtr Example () {return example;}
81 
82 
83  private:
84  FeatureVectorPtr example;
85  ImageFeaturesNodeKey nodeKey;
86  };
87 
88 
89 
90 
92  {
93  public:
95  {
96  return entry->NodeKey ();
97  }
98  };
99 
100 
101 } /* namespace KKMLL */
102 
103 
104 #endif
__int32 kkint32
Definition: KKBaseTypes.h:88
#define _FeatureVector_Defined_
ImageFeaturesDataIndexed(const FeatureVectorList &examples)
const ImageFeaturesNodeKey & NodeKey() const
void RBInsert(FeatureVectorPtr example)
Container class for FeatureVector derived objects.
const ImageFeaturesNodeKey & ExtractKey(ImageDataTreeEntry *entry)
ImageFeaturesNodeKey(FeatureVectorPtr _example)
#define _FeatureVectorList_Defined_
ImageFeaturesDataIndexed * ImageFeaturesDataIndexedPtr
ImageDataTreeEntry(FeatureVectorPtr _example)
bool operator>(const ImageFeaturesNodeKey &rightNode) const
FeatureVectorPtr Example()
void EncodeProblem(const struct svm_paramater &param, struct svm_problem &prob_in, struct svm_problem &prob_out)
bool operator==(const ImageFeaturesNodeKey &rightNode) const
kkint32 CompareTwoExamples(const FeatureVectorPtr i1, const FeatureVectorPtr i2) const
FeatureVectorPtr GetEqual(FeatureVectorPtr example)
bool operator<(const ImageFeaturesNodeKey &rightNode) const