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

void Impala::Core::Feature::DumpFeatureTableHistogram ( FeatureTable *  table,
FeatureDefinition  fdef,
int  id 
)

Definition at line 16 of file DumpFeatureTableHistogram.h.

References Impala::Core::Feature::FeatureDefinition::AsString(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn2(), ILOG_ERROR, ILOG_FUNCTION, Impala::MakeString(), Impala::Core::Matrix::MatSumColumns(), and Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::Value().

00017 {
00018     ILOG_FUNCTION("Impala.Core.Feature.DumpFeatureTableHistogram");
00019     String filename = fdef.AsString() + ".histogramdump" + MakeString(id);
00020     //ILOG_INFO("dumping table "<<filename);
00021     //ILOG_INFO("table size: "<<table->Size());
00022     Array::Array2dScalarReal64* data = table->GetColumn2()->GetStorage();
00023     Array::Array2dScalarReal64* hist = Matrix::MatSumColumns(data);
00024     //ILOG_INFO("hist size(): "<< hist->CW() <<", "<< hist->CH());
00025     std::ofstream ofs(filename.c_str());
00026     if(ofs.is_open())
00027     {
00028         for(int i=0 ; i<hist->CW() ; ++i)
00029         {
00030             //ILOG_INFO(hist->Value(i, 0));
00031             ofs << MakeString(hist->Value(i, 0)) <<" ";
00032         }
00033         ofs.close();
00034     }
00035     else
00036         ILOG_ERROR("couldn't dump "<<filename);
00037 }

Here is the call graph for this function:


Generated on Fri Mar 19 11:08:06 2010 for ImpalaSrc by  doxygen 1.5.1