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

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

Definition at line 435 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(), mPredictions, Impala::Core::Table::SimilarityTableSet::Save(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value().

Referenced by HandleDoneFile().

00436     {
00437         int lastFrame = src->LastFrame();
00438         std::vector<String> names;
00439         names.push_back("ShotBoundary");
00440         Table::SimilarityTableSet simSet(names, lastFrame+1);
00441         Table::QuidTable* qTable = simSet.GetQuidTable();
00442         int idx = 0;
00443         Table::SimilarityTableSet::SimTableType* sTable = simSet.GetSimTable(idx);
00444         for (int i=0 ; i<=lastFrame ; i++)
00445         {
00446             Quid q = vs->GetQuidFrame(fileId, i);
00447             qTable->Add(q);
00448             Real64 v = mPredictions->Value(i,0) / 2; // to get between 0 and 1
00449             sTable->Add(v);
00450         }
00451         simSet.ComputeRanks(true);
00452 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00453         simSet.Save(vs, "Frames", "streamConcepts.txt", "no_model", "direct",
00454                     fileId, true);
00455 #else // REPOSITORY_USED
00456         Persistency::SimilarityTableSetLocator loc
00457             (vs->GetLocator(), false, "Frames", "streamConcepts.txt", "no_model",
00458              "direct", vs->GetAsPath(fileId));
00459         Persistency::SimilarityTableSetRepository().Add(loc, &simSet);
00460 #endif // REPOSITORY_USED
00461     }

Here is the call graph for this function:


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