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