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

virtual void Impala::Core::ImageSet::ProtoSimilarityEval::HandleDoneDir ( ImageSet is,
int  dirId 
) [inline, virtual]

Completed given DB_DIR in a "normal" walk.

Reimplemented from Impala::Core::ImageSet::Listener.

Definition at line 45 of file ProtoSimilarityEval.h.

References Impala::Core::Feature::Computor::ExtendFeatureDefinition(), Impala::Core::Feature::FeatureTableSet::GetFeatureDefinition(), Impala::Core::Feature::Computor::GetFeatureTableSet(), Impala::Core::Feature::Computor::GetMaskSetBase(), Impala::Core::Feature::FeatureTableSet::GetTable(), mComputor, Impala::Core::Feature::FeatureTableSet::Size(), Impala::Core::Table::Write(), and Impala::Core::Feature::Computor::WriteFeatureDefinitions().

00046     {
00047         bool binary = true;
00048         Feature::FeatureTableSet* tableSet = mComputor->GetFeatureTableSet();
00049         Persistency::FeatureLocator loc(is->GetLocator(), false, false, "",
00050                                         "empty", is->GetContainerDir(dirId));
00051         for (int i=0 ; i<tableSet->Size() ; i++)
00052         {
00053             Feature::FeatureDefinition def = tableSet->GetFeatureDefinition(i);
00054             def = mComputor->ExtendFeatureDefinition(def);
00055 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00056             String fName = is->GetFilePathFeatureData(def, dirId, false,
00057                                                       0, true, false);
00058             if (!fName.empty())
00059             {
00060                 Table::Write(tableSet->GetTable(i), fName, is->GetDatabase(),
00061                              binary);
00062             }
00063 #else // REPOSITORY_USED
00064             loc.SetFeatureDef(def);
00065             Persistency::FeatureTableRepository().Add(loc,
00066                                                       tableSet->GetTable(i));
00067 #endif // REPOSITORY_USED
00068             tableSet->GetTable(i)->SetSize(0);
00069         }
00070         String mask = mComputor->GetMaskSetBase();
00071         if (!mask.empty())
00072         {
00073 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00074             String fName = is->GetFilePathFeatureData(mask + ".txt", dirId,
00075                                                       false, 0, true, false);
00076             if (!fName.empty())
00077                 mComputor->WriteFeatureDefinitions(fName, is->GetDatabase());
00078 #else // REPOSITORY_USED
00079             loc.SetFeatureString(mask + ".txt");
00080             mComputor->WriteFeatureDefinitions(loc);
00081 #endif // REPOSITORY_USED
00082         }
00083     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:15:17 2010 for ImpalaSrc by  doxygen 1.5.1