KSquare Utilities
ImageFeaturesNameIndexed.cpp
Go to the documentation of this file.
1 #include "FirstIncludes.h"
2 
3 #include <stdio.h>
4 #include <ctype.h>
5 #include <time.h>
6 
7 #include <string>
8 #include <iostream>
9 #include <fstream>
10 #include <vector>
11 
12 #include "MemoryDebug.h"
13 
14 using namespace std;
15 
16 
17 #include "KKBaseTypes.h"
18 #include "OSservices.h"
19 using namespace KKB;
20 
21 
23 #include "FeatureVector.h"
24 using namespace KKMLL;
25 
26 
27 
28 
30 
31 
32 
35 {
36 }
37 
38 
39 
42 {
43  FeatureVectorPtr example = NULL;
44  for (auto idx: examples)
45  {
46  example = idx;
47  RBInsert (example);
48  }
49 }
50 
51 
52 
53 
54 
55 KKStr ExtractExampleFileName::ExtractKey (FeatureVectorPtr example)
56 {
57  return osGetRootName (example->ExampleFileName ());
58 }
KKStr ExtractKey(FeatureVectorPtr example)
ImageFeaturesNameIndexed(const FeatureVectorList &images)
Container class for FeatureVector derived objects.
KKTHread * KKTHreadPtr
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of &#39;std::string&#39; strings.
Definition: KKStr.cpp:1082
void EncodeProblem(const struct svm_paramater &param, struct svm_problem &prob_in, struct svm_problem &prob_out)
ExtractExampleFileName extractImageFileName
const KKStr & ExampleFileName() const
Name of file that this FeatureVector was computed from.
KKStr osGetRootName(const KKStr &fullFileName)