Arrived at a new frame in a "normal" walk.
Reimplemented from Impala::Core::VideoSet::Listener. Definition at line 303 of file ShotSegmenter.h. References CalculateScores(), ComputeSSWeights(), Impala::Core::Stream::RgbDataSrc::DataPtr(), Impala::Core::Stream::RgbDataSrc::FrameNr(), GetPredictionFrame(), HandleDoneFile(), Impala::Core::Stream::RgbDataSrc::LastFrame(), mDoProcessing, mGUI, mMode, mRadius, mScores, mSrc, mWindowSize, Predict(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::SetValue(), and UpdateHistograms(). Referenced by Impala::Core::VideoSet::ShotSegmenterGUI::HandleNewFrame(). 00304 { 00305 int ProcessFrame=mSrc->FrameNr(); 00306 int ScoreFrame=ProcessFrame-mRadius; 00307 int PredictFrame=GetPredictionFrame(); 00308 00309 if (mDoProcessing) 00310 { 00311 UpdateHistograms(mSrc->DataPtr()); 00312 00313 if (ProcessFrame>=mWindowSize-1) 00314 { 00315 ComputeSSWeights(); 00316 Real64 score=CalculateScores(); 00317 mScores->SetValue(score,ScoreFrame,0); 00318 } 00319 } 00320 00321 Predict(PredictFrame); 00322 00323 if ((mMode=="Train") || (mMode=="Test") || (mMode=="EvalTrain") || 00324 (mMode=="EvalTest")) 00325 { 00326 return; 00327 } 00328 00329 if (mGUI && (ProcessFrame==mSrc->LastFrame())) 00330 { 00331 HandleDoneFile(vs, fileId, src); 00332 } 00333 }
Here is the call graph for this function:
|