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

void Impala::Core::VideoSet::ShotSegmenter::WriteShotSimilarity ( VideoSet vs,
int  fileId,
Stream::RgbDataSrc src 
) [inline, private]

Definition at line 361 of file ShotSegmenter.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), Impala::Core::Table::SimilarityTableSet::ComputeRanks(), Impala::Core::Table::SimilarityTableSet::GetQuidTable(), Impala::Core::Table::SimilarityTableSet::GetSimTable(), Impala::Core::Stream::RgbDataSrc::LastFrame(), mDoSim, mPredictions, and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value().

Referenced by HandleDoneFile().

00362     {
00363         if (!mDoSim)
00364             return;
00365         int lastFrame = src->LastFrame();
00366         std::vector<String> names;
00367         names.push_back("ShotBoundary");
00368         Table::SimilarityTableSet simSet(names, lastFrame + 1);
00369         Table::QuidTable* qTable = simSet.GetQuidTable();
00370         int idx = 0;
00371         Table::SimilarityTableSet::SimTableType* sTable = simSet.GetSimTable(idx);
00372         for (int i=0 ; i<=lastFrame ; i++)
00373         {
00374             Quid q = vs->GetQuidFrame(fileId, i);
00375             qTable->Add(q);
00376             Real64 v = mPredictions->Value(i,0) / 2; // to get between 0 and 1
00377             sTable->Add(v);
00378         }
00379         simSet.ComputeRanks(true);
00380         Persistency::SimilarityTableSetLocator loc
00381             (vs->GetLocator(), false, "Frames", "streamConcepts.txt", "no_model",
00382              "direct", vs->GetAsPath(fileId));
00383         Persistency::SimilarityTableSetRepository().Add(loc, &simSet);
00384     }

Here is the call graph for this function:


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