Definition at line 62 of file mainRandomForest.cpp. References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), and Impala::Util::RandomUniqueNumbers(). Referenced by GetFeatures(). 00064 { 00065 Geometry::InterestPointList::const_iterator itPoint = points.begin(); 00066 std::set<int> indices = Util::RandomUniqueNumbers(n, points.size()); 00067 int index=0; 00068 for(std::set<int>::iterator itIndex = indices.begin() ; 00069 itIndex != indices.end() ; ++itIndex) 00070 { 00071 while(index<*itIndex) 00072 { 00073 ++itPoint; 00074 ++index; 00075 } 00076 std::vector<Real64>& v = (*itPoint)->mDescriptor; 00077 Vector::VectorTem<double> vector(v.size(), &v[0], true); 00078 featureSampling.Add(vector, classId); 00079 } 00080 }
Here is the call graph for this function:
|