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

void Impala::Core::VideoSet::TableShots::WriteVxsFile ( std::string  fileName,
std::string  conceptName,
Segmentation shots,
Keyframes keyframes 
) [inline]

Definition at line 54 of file TableShots.h.

References Impala::Core::Geometry::FileWriteVxRectangle(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get3(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get4(), Impala::Core::Database::RawDataSet::GetDir(), Impala::Core::VideoSet::Segmentation::GetEnd(), Impala::Core::Database::RawDataSet::GetFile(), Impala::Core::VideoSet::Keyframes::GetName(), Impala::Core::Database::RawDataSet::GetSection(), Impala::Core::VideoSet::Segmentation::GetStart(), Impala::Core::VideoSet::Segmentation::GetVideoId(), Impala::Core::VideoSet::Segmentation::GetVideoSet(), Impala::Core::Geometry::VxRectangle::mAnno, Impala::Core::Geometry::VxRectangle::mDir, Impala::Core::Geometry::VxRectangle::mEndFrame, Impala::Core::Geometry::VxRectangle::mExtra, Impala::Core::Geometry::VxRectangle::mRect, Impala::Core::Geometry::VxRectangle::mSection, Impala::Core::Geometry::VxRectangle::mStartFrame, Impala::Core::Geometry::VxRectangle::mVideoName, and Impala::Core::Table::Table::Size().

Referenced by Impala::Core::VideoSet::SegmentationDocument::SaveBookmarked().

00056     {
00057         std::vector<Geometry::VxRectangle> vrList;
00058         for (int i=0 ; i<Size() ; i++)
00059         {
00060             int shot = Get1(i);
00061             Geometry::VxRectangle vr;
00062             vr.mStartFrame = shots->GetStart(shot);
00063             vr.mEndFrame = shots->GetEnd(shot);
00064             vr.mAnno = Get3(i);
00065             if (vr.mAnno == std::string(""))
00066                 vr.mAnno = conceptName;
00067             vr.mRect = Get4(i);
00068             int vid = shots->GetVideoId(shot);
00069             vr.mVideoName = shots->GetVideoSet()->GetFile(vid);
00070             vr.mSection = shots->GetVideoSet()->GetSection(vid);
00071             vr.mDir = shots->GetVideoSet()->GetDir(vid);
00072             vr.mExtra = keyframes->GetName(Get2(i));
00073             vrList.push_back(vr);
00074         }
00075         Geometry::FileWriteVxRectangle(fileName, vrList.begin(), vrList.end());
00076     }

Here is the call graph for this function:


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