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

virtual void Impala::Core::VideoSet::ProtoSimilarityEval::HandleDoneFile ( VideoSet vs,
int  fileId,
Stream::RgbDataSrc src 
) [inline, virtual]

Completed given DB_FILE in a "normal" walk.

Reimplemented from Impala::Core::VideoSet::Listener.

Definition at line 127 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, mIsPartial, mLoc, mSkipThisVideo, mStartFrame, mWalkType, Impala::Persistency::FeatureLocator::SetFeatureDef(), Impala::Persistency::FeatureLocator::SetFeatureString(), Impala::Core::Feature::FeatureTableSet::Size(), Impala::Core::Table::Write(), and Impala::Core::Feature::Computor::WriteFeatureDefinitions().

00128     {
00129         if (mSkipThisVideo)
00130             return;
00131         bool binary = true;
00132         Feature::FeatureTableSet* tableSet = mComputor->GetFeatureTableSet();
00133         for (int i=0 ; i<tableSet->Size() ; i++)
00134         {
00135             if (mIsPartial && (tableSet->GetTable(i)->Size() < 2))
00136                 continue;
00137             Feature::FeatureDefinition def = tableSet->GetFeatureDefinition(i);
00138             def = mComputor->ExtendFeatureDefinition(def);
00139 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00140             String fName = vs->GetFilePathFeatureData(mWalkType, def, fileId,
00141                                                       mIsPartial, mStartFrame,
00142                                                       true, false);
00143             if (!fName.empty())
00144                 Table::Write(tableSet->GetTable(i), fName, vs->GetDatabase(),
00145                              binary);
00146 #else // REPOSITORY_USED
00147             mLoc.SetFeatureDef(def);
00148             Persistency::FeatureTableRepository().Add(mLoc,
00149                                                       tableSet->GetTable(i));
00150 #endif // REPOSITORY_USED
00151             tableSet->GetTable(i)->SetSize(0);
00152         }
00153         String mask = mComputor->GetMaskSetBase();
00154         if (!mask.empty())
00155         {
00156 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00157             String fName = vs->GetFilePathFeatureData
00158                 (mWalkType, mask + ".txt", fileId, mIsPartial, mStartFrame,
00159                  true, false);
00160             if (!fName.empty())
00161                 mComputor->WriteFeatureDefinitions(fName, vs->GetDatabase());
00162 #else // REPOSITORY_USED
00163             mLoc.SetFeatureString(mask + ".txt");
00164             mComputor->WriteFeatureDefinitions(mLoc);
00165 #endif // REPOSITORY_USED
00166         }
00167     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:31:05 2010 for ImpalaSrc by  doxygen 1.5.1