Home || Architecture || Video Search || Visual Search || Scripts || Applications || 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 76 of file InterestPointProc.h.

References Impala::Core::Feature::FeatureDefinition::AddParameter(), Impala::Core::Feature::InterestPointFeature::GetFeatureName(), Impala::Core::Feature::InterestPointFeature::GetFeatureNameShort(), Impala::CmdOptions::GetInstance(), ILOG_DEBUG, ILOG_INFO, Impala::Core::Feature::InterestPointFeature::mClusterInput, Impala::Core::Feature::InterestPointFeature::mFeatureDefinition, mInterestPointFeature, mNoZIP, mSkipThisVideo, mTemporaryFilenames, and mWalkType.

00077     {
00078         // Make the feature data folder
00079         ILOG_INFO("HandleNewFile: " << fileId);
00080         String folder = vs->GetFilePathFeatureData(mWalkType, mInterestPointFeature.GetFeatureName(), fileId, false, -1, true, false);
00081         ILOG_DEBUG("Storage folder: " << folder);
00082         String folder2 = vs->GetFilePathFeatureData(mWalkType, mInterestPointFeature.GetFeatureNameShort(), fileId, false, -1, true, false);
00083         ILOG_DEBUG("Storage folder (#2): " << folder2);
00084         mTemporaryFilenames.clear();
00085         mSkipThisVideo = false;
00086         if(!CmdOptions::GetInstance().GetBool("override")) 
00087         {
00088             // only support skipping if override is off
00089             if(!mNoZIP) 
00090             {
00091                 // does the ZIP exist already?
00092                 String serverName = vs->GetFilePathFeatureData(mWalkType, mInterestPointFeature.GetFeatureName(), fileId, false, -1, true, false) + ".zip";
00093                 String temp = vs->GetDatabase()->GetFilePath(serverName, false, true);
00094                 if(!temp.empty()) {
00095                     mSkipThisVideo = true;
00096                     ILOG_INFO("Skipping video " << fileId << "; ZIP file already exists");
00097                 }
00098             } else {
00099                 if(mInterestPointFeature.mClusterInput)
00100                 {
00101                     // clusterInput mode
00102                     Feature::FeatureDefinition def = mInterestPointFeature.GetFeatureName();
00103                     def.AddParameter("clusterinput", "2");
00104                     String tableName = vs->GetFilePathFeatureData(mWalkType, def, fileId, false, -1, false, true);
00105                     if(!tableName.empty())
00106                     {
00107                         mSkipThisVideo = true;
00108                         ILOG_INFO("Skipping folder " << fileId << "; FeatureData:ClusterInput file already exists");
00109                     }
00110                 }
00111                 else
00112                 {
00113                     // does the featuretable exist already?
00114                     String tableName = vs->GetFilePathFeatureData(mWalkType, mInterestPointFeature.mFeatureDefinition, fileId, false, -1, false, true);
00115                     if(!tableName.empty())
00116                     {
00117                         mSkipThisVideo = true;
00118                         ILOG_INFO("Skipping video " << fileId << "; FeatureData file already exists");
00119                     }
00120                 }
00121             }
00122         } 
00123     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:29:51 2010 for ImpalaSrc by  doxygen 1.5.1