Definition at line 82 of file mainRandomForest.cpp. References Impala::Core::Feature::CalculateSurfDescriptors(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), Impala::Core::Training::Factory::GetFeatureDefinition(), Impala::Core::Feature::FeatureDefinition::GetName(), GetNSamples(), ILOG_DEBUG, ILOG_ERROR, ILOG_FUNCTION, ILOG_PROGRESS, ILOG_PROGRESS_DONE, Impala::Core::Training::Factory::MakeImage(), Impala::Core::Table::Table::Size(), and Impala::StringReplace(). Referenced by RandomForest(). 00085 { 00086 ILOG_FUNCTION(GetFeatures); 00087 for(int i=0 ; i<quidSampling.Size() ; ++i) 00088 { 00089 ILOG_PROGRESS(i <<" of "<< quidSampling.Size() <<" processed", 4.); 00090 Quid q = quidSampling.Get1(i); 00091 Array::Array2dVec3UInt8* image = factory->MakeImage(q); 00092 if(image == 0) 00093 ILOG_ERROR("couldn't get image of quid "<< QuidObj(q)); 00094 Feature::PointDescriptorTable* pointData = new 00095 Feature::PointDescriptorTable(Feature::FeatureDefinition("")); 00096 String descriptor = factory->GetFeatureDefinition().GetName(); 00097 ILOG_DEBUG("d="<<descriptor); 00098 descriptor = descriptor.substr(descriptor.find("-")+1); 00099 descriptor = StringReplace(descriptor, "surf", ""); 00100 ILOG_DEBUG("d="<<descriptor); 00101 Feature::CalculateSurfDescriptors 00102 (image, pointData, descriptor, 00103 dSurfParams[0], dSurfParams[1], dSurfParams[2]); 00104 int classId = quidSampling.Get2(i); 00105 ILOG_DEBUG("point list size="<< pointData->Size()); 00106 GetNSamples(featureSampling, pointData, cPointPerImage, classId); 00107 delete pointData; 00108 delete image; 00109 } 00110 ILOG_PROGRESS_DONE("all processed"); 00111 }
Here is the call graph for this function: ![]()
|