Definition at line 464 of file ShotSegmenter.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Util::Database::GetInstance(), ILOG_INFO, mBinCount, mMode, mRadius, mRunName, mScores, mSigma, Impala::Util::IOBuffer::Puts(), Impala::Util::IOBuffer::Valid(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value(). Referenced by HandleDoneFile(). 00465 { 00466 00467 #ifndef REPOSITORY_USED // Here comes the deprecated stuff 00468 std::ostringstream oss; 00469 00470 //Scores File 00471 char OutFileName[300]; 00472 sprintf(OutFileName,"%s_%d-%g-%d.txt",SrcName.c_str(), 00473 mRadius,mSigma,mBinCount); 00474 Util::Database& Db = Util::Database::GetInstance(); 00475 Db.MakeDir("ShotSegmentation","Scores",mMode,mRunName); 00476 String FileName=Db.GetFilePath("ShotSegmentation","Scores",mMode,mRunName,OutFileName,true,false); 00477 Util::IOBuffer* Output=Db.GetIOBuffer(FileName,false,false,"tmp"); 00478 if(Output && Output->Valid()) 00479 { 00480 ILOG_INFO("Writing Scores to "<<FileName); 00481 for (int i=0;i<mScores->CW();i++) 00482 { 00483 oss<<i<<" "<<mScores->Value(i,0); 00484 Output->Puts(oss.str()); 00485 oss.str( "" ); 00486 } 00487 delete Output; 00488 } 00489 #endif // REPOSITORY_USED 00490 00491 }
Here is the call graph for this function:
|