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

template<class Iterator>
void Impala::Core::Geometry::FileWriteVxRectangle ( std::string  fileName,
Iterator  begin,
Iterator  end 
) [inline]

Definition at line 17 of file FileWriteVxRectangle.h.

Referenced by Impala::Core::VideoSet::TableShots::WriteVxsFile(), and Impala::Core::Table::TableVxs::WriteVxsFile().

00018 {
00019     File f(fileName, "w");
00020     if (! f.Valid())
00021         return;
00022         fprintf(f.Fp(), "#@ \"start\" \"end\" \"anno\" \"rect\" \"video\" \"section\" \"dir\" \"extra\"\n");
00023         fprintf(f.Fp(), "#= \"int\" \"int\" \"string\" \"string\" \"string\" \"string\" \"string\" \"string\"\n");
00024         for (Iterator it=begin ; it!=end ; it++)
00025     {
00026                 VxRectangle vr = *it;
00027                 fprintf(f.Fp(), "%d %d \"%s\" \"%d %d %d %d\" \"%s\" \"%s\" \"%s\" \"%s\"\n",
00028                                 vr.mStartFrame, vr.mEndFrame, vr.mAnno.c_str(),
00029                                 vr.mRect.mLeft, vr.mRect.mTop, vr.mRect.mRight, vr.mRect.mBottom,
00030                                 vr.mVideoName.c_str(), vr.mSection.c_str(), vr.mDir.c_str(),
00031                 vr.mExtra.c_str());
00032         }
00033 }


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