Arrived at a new frame in a "normal" walk.
Reimplemented from Impala::Core::VideoSet::Listener. Definition at line 98 of file ProtoSimilarityEval.h. References Impala::Core::Feature::Computor::ComputeFeatures(), Impala::Core::Stream::RgbDataSrc::DataPtr(), Impala::Core::Stream::RgbDataSrc::FrameHeight(), Impala::Core::Stream::RgbDataSrc::FrameNr(), Impala::Core::Stream::RgbDataSrc::FrameWidth(), mComputor, and mSkipThisVideo. 00099 { 00100 if (mSkipThisVideo) 00101 return; 00102 Array::Array2dVec3UInt8* im = Array::ArrayCreate<Array::Array2dVec3UInt8> 00103 (src->FrameWidth(), src->FrameHeight(), 0, 0, src->DataPtr(), true); 00104 Quid quid = vs->GetQuidFrame(fileId, src->FrameNr(), true); 00105 mComputor->ComputeFeatures(im, quid); 00106 delete im; 00107 00108 // For temporal filtering use something like this instead: 00109 // (requires --srcWindow "size;5;rgb2ooo") 00110 /* 00111 typedef Stream::RgbDataSrcWindow<Stream::WindowPrepRgb2Ooo> WindowType; 00112 WindowType* window = dynamic_cast<WindowType*>(src); 00113 if (window) 00114 { 00115 std::cout << "window size = " << window->WindowSize() << std::endl; 00116 Array::Array2dScalarReal64* tGauss = 0; 00117 double temporalSigma = 0.75; 00118 tGauss = Array::MakeGaussian1d(temporalSigma, 0, 3.0, 100); 00119 Array::Array2dVec3Real64* res = 0; 00120 SeqConvKernel(res, window, tGauss); 00121 // res is now like im above and should be given to InvWiccest 00122 } 00123 */ 00124 }
Here is the call graph for this function:
|