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

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

Arrived at given DB_FILE in a "normal" walk.

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

Definition at line 84 of file InterestPointProc.h.

References Impala::Core::Feature::FeatureDefinition::AddParameter(), Impala::Core::Feature::FeatureDefinition::AsString(), Impala::Core::Feature::InterestPointFeature::GetFeatureDefinition(), Impala::Core::Feature::InterestPointFeature::GetFeatureName(), Impala::CmdOptions::GetInstance(), ILOG_INFO, Impala::Core::Feature::InterestPointFeature::mClusterInput, mInterestPointFeature, mNoZIP, mSkipThisVideo, mTempFilenames, and mWalkType.

00085     {
00086         ILOG_INFO("HandleNewFile: " << fileId);
00087         mTempFilenames.clear();
00088         mSkipThisVideo = false;
00089         if (CmdOptions::GetInstance().GetBool("override"))
00090             return; // only support skipping if override is off
00091             
00092         if (!mNoZIP) 
00093         {
00094             // does the ZIP exist already?
00095             FeatureLocator loc(vs->GetLocator(), false, false, mWalkType,
00096                                mInterestPointFeature.GetFeatureName(),
00097                                vs->GetContainer(fileId));
00098             loc.ExtendSuffix(".zip");
00099             if (FeatureTableRepository().Exists(loc))
00100             {
00101                 mSkipThisVideo = true;
00102                 ILOG_INFO("Skipping video " << fileId <<
00103                           "; ZIP file already exists");
00104             }
00105             return;
00106         }
00107 
00108         if (mInterestPointFeature.mClusterInput)
00109         {
00110             // clusterInput mode
00111             Feature::FeatureDefinition def = mInterestPointFeature.GetFeatureName();
00112             def.AddParameter("clusterinput", "2");
00113             FeatureLocator loc(vs->GetLocator(), false, false, mWalkType,
00114                                def.AsString(), vs->GetContainer(fileId));
00115             if (FeatureTableRepository().Exists(loc))
00116             {
00117                 mSkipThisVideo = true;
00118                 ILOG_INFO("Skipping folder " << fileId <<
00119                           "; FeatureData:ClusterInput file already exists");
00120             }
00121         }
00122         else
00123         {
00124             // does the featuretable exist already?
00125             String f = mInterestPointFeature.GetFeatureDefinition().AsString();
00126             FeatureLocator loc(vs->GetLocator(), false, false, mWalkType, f,
00127                                vs->GetContainer(fileId));
00128             if (FeatureTableRepository().Exists(loc))
00129             {
00130                 mSkipThisVideo = true;
00131                 ILOG_INFO("Skipping video " << fileId <<
00132                           "; FeatureData file already exists");
00133             }
00134         }
00135     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:57 2011 for ImpalaSrc by  doxygen 1.5.1