Completed given DB_DIR in a "normal" walk.
Reimplemented from Impala::Core::ImageSet::Listener. Definition at line 32 of file IndexFeatures.h. References Impala::Util::Append(), Impala::Core::Feature::FeatureTable::GetFeatureVectorLength(), mDef, mTable, and Impala::Core::Table::Read(). 00033 { 00034 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00035 String fName = is->GetFilePathFeatureData(mDef, dirId, false, -1, 00036 false, false); 00037 if (fName.empty()) 00038 { 00039 return; 00040 } 00041 FeatureTable tmp(mDef); 00042 Table::Read(&tmp, fName, is->GetDatabase()); 00043 if (mTable == 0) 00044 { 00045 mTable = new FeatureTable(mDef, 12000, tmp.GetFeatureVectorLength()); 00046 } 00047 Table::Append(mTable, &tmp); 00048 #else // REPOSITORY_USED 00049 Persistency::FeatureLocator loc(is->GetLocator(), false, false, "", 00050 mDef.AsString(), 00051 is->GetContainerDir(dirId)); 00052 FeatureTable* tmp = Persistency::FeatureTableRepository().Get(loc); 00053 if (mTable == 0) 00054 { 00055 mTable = new FeatureTable(mDef, 12000, 00056 tmp->GetFeatureVectorLength()); 00057 } 00058 Table::Append(mTable, tmp); 00059 delete tmp; 00060 #endif // REPOSITORY_USED 00061 }
Here is the call graph for this function:
|