Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void @41::GetFeatures ( Feature::AnnotatedFeatureTable featureSampling,
const SelectionTable quidSampling,
DataFactory factory,
int  dSurfParams[3] 
) [static]

Definition at line 83 of file mainRandomForest.cpp.

References Impala::Core::Feature::CalculateSurfDescriptors(), Impala::Core::Geometry::InterestPointList::EraseAndDelete(), 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::DataFactory::GetFeatureDefinition(), Impala::Core::Feature::FeatureDefinition::GetName(), GetNSamples(), ILOG_DEBUG, ILOG_ERROR, ILOG_FUNCTION, ILOG_PROGRESS, ILOG_PROGRESS_DONE, Impala::Core::DataFactory::MakeImage(), Impala::Core::Table::Table::Size(), and Impala::StringReplace().

Referenced by RandomForest().

00086 {
00087     ILOG_FUNCTION(GetFeatures);
00088     for(int i=0 ; i<quidSampling.Size() ; ++i)
00089     {
00090         ILOG_PROGRESS(i <<" of "<< quidSampling.Size() <<" processed", 4.);
00091         Quid q = quidSampling.Get1(i);
00092         Array::Array2dVec3UInt8* image = factory->MakeImage(q);
00093         if(image == 0)
00094             ILOG_ERROR("couldn't get image of quid "<< QuidObj(q));
00095         Geometry::InterestPointList pointList;
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, pointList, descriptor,
00103              dSurfParams[0], dSurfParams[1], dSurfParams[2]);
00104         int classId = quidSampling.Get2(i);
00105         ILOG_DEBUG("point list size="<< pointList.size());
00106         GetNSamples(featureSampling, pointList, cPointPerImage, classId);
00107         pointList.EraseAndDelete();
00108         delete image;
00109     }
00110     ILOG_PROGRESS_DONE("all processed");
00111 }

Here is the call graph for this function:


Generated on Fri Mar 19 09:34:55 2010 for ImpalaSrc by  doxygen 1.5.1