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

void Impala::Core::VideoSet::ShotSegmenter::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 598 of file ShotSegmenter.h.

References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::FileNameBase(), Impala::Core::Stream::RgbDataSrc::GetName(), mCUTs, mDISs, mFeatures, mFeaturesReversed, mFOIs, mGroundTruth, mGUI, mHistograms, mHistPerFrame, mMode, mOTHs, mPredictions, mPredictOnly, mPredictOutput, mRadius, mScores, mSrc, mWindowSize, Predict(), WriteLfvAndSvm(), WriteMp7ShotSeg(), WritePredictions(), WriteScores(), and WriteShotSimilarity().

Referenced by HandleNewFrame().

00599     {
00600         if (mPredictOnly)
00601         {
00602             for (int i=0; i < mScores->CW() - mRadius - 1 ; i++)
00603                 Predict(i);
00604         }
00605         
00606         if (((mMode=="Run") || (mPredictOnly)) && mPredictOutput)
00607         { 
00608             WritePredictions();
00609         }
00610 
00612         //Storing Keyframes and Segmentation is handled in this function
00613 
00614         if (mMode=="Run")
00615         {
00616             if (!mGUI)   // If we're not in the walker mode, we do not output
00617             {            // impala shot data
00618                 WriteMp7ShotSeg(vs, fileId, src);
00619                 WriteShotSimilarity(vs, fileId, src);
00620             }
00621         }
00622 
00623         if ((mMode=="Train") || (mMode=="Test") ||
00624             (mMode=="EvalTrain") || (mMode=="EvalTest"))
00625         {
00626             String SrcName = mSrc->GetName();
00627             SrcName=Impala::FileNameBase(SrcName);
00628             //Write the scores data 
00629             WriteScores(SrcName);
00630             //We should also output the tresholded local minimum values
00631             WriteLfvAndSvm(SrcName, fileId);
00632         }
00633 
00635         //Clear the variables for the next file
00636         if (mScores != 0)
00637         {
00638             delete mScores;
00639             mScores = 0;
00640         }
00641         if (mPredictions != 0)
00642         {
00643             delete mPredictions;
00644             mPredictions=0;
00645         }
00646         if (mHistograms!=0)
00647         {
00648             for (int i=0 ; i<mWindowSize*mHistPerFrame ; i++)
00649             {   
00650                delete mHistograms[i];
00651             }
00652             delete[] mHistograms;
00653             mHistograms = 0;
00654         }
00655         if (mFeatures != 0)
00656         {
00657             delete mFeatures;
00658             mFeatures = 0;
00659         }
00660         if (mFeaturesReversed != 0)
00661         {
00662             delete mFeaturesReversed;
00663             mFeaturesReversed = 0;
00664         }
00665         if (mCUTs)
00666         {
00667             delete mCUTs;
00668             delete mFOIs;
00669             delete mDISs;
00670             delete mOTHs;
00671             delete mGroundTruth;
00672         }
00673     }

Here is the call graph for this function:


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