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

template<class SimFunc>
virtual void Impala::Core::Feature::RadiusClusteror< SimFunc >::Clusters2FeatureTable ( FeatureTable table  )  [inline, virtual]

Export the clusters found to the given feature table.

Implements Impala::Core::Feature::Clusteror.

Definition at line 221 of file RadiusClusteror.h.

References Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Add(), 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(), max, Impala::Core::Feature::RadiusClusteror< SimFunc >::mClusterCount, Impala::Core::Feature::RadiusClusteror< SimFunc >::mClusterVec, Impala::Core::Feature::RadiusClusteror< SimFunc >::PrintStatus(), and Impala::Core::Table::Table::Size().

00222     {
00223         PrintStatus();
00224 
00225         bool done = false;
00226         while (!done)
00227         {
00228             int idx = -1;
00229             //int max = mMinElemsInCluster; // discard clusters with less elems
00230             int max = -1; // export all clusters
00231             for (int i=0 ; i<mClusterVec->Size() ; i++)
00232             {
00233                 if (mClusterCount[i] > max)
00234                 {
00235                     max = mClusterCount[i];
00236                     idx = i;
00237                 }
00238             }
00239             if (idx != -1)
00240             {
00241                 table->Add(mClusterVec->Get1(idx), mClusterVec->Get2(idx));
00242                 mClusterCount[idx] = -1;
00243             }
00244             else
00245             {
00246                 done = true;
00247             }
00248         }
00249     }

Here is the call graph for this function:


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