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

void Impala::Core::VideoSet::Keyframes::RemoveDuplicates (  )  [inline]

Definition at line 146 of file Keyframes.h.

References 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::Table::RemoveRow(), Impala::Core::Table::Table::Size(), and UpdateGroups().

Referenced by Impala::Core::Trec::Collection::WriteVideoSet().

00147     {
00148         int i=0;
00149         while (i < Size()-1)
00150         {
00151             int j = i+1;
00152             while ((Get1(i) == Get1(j)) && (Get2(i) == Get2(j))) // same shot?
00153             {
00154                 if (Get3(i) == Get3(j)) // same frame number?
00155                 {
00156                     if (Get4(i).find("_RKF") != String::npos)
00157                     {
00158                         Core::Table::RemoveRow(this, j);
00159                     }
00160                     else
00161                     {
00162                         Core::Table::RemoveRow(this, i);
00163                         j = i+1;
00164                     }
00165                 }
00166                 else
00167                 {
00168                     j++;
00169                 }
00170             }
00171             i++;
00172         }
00173         UpdateGroups();
00174     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:30:04 2010 for ImpalaSrc by  doxygen 1.5.1