Definition at line 371 of file FeatureTableSet.h. References CheckEqualSize(), Impala::Core::Table::Copy(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::GetColumn2(), GetTable(), GetTotalFeatureVectorLength(), ILOG_ERROR, Impala::Core::Vector::SetPart(), Impala::Core::Table::Table::SetSize(), and Size(). Referenced by Impala::Application::Table::DoConcatFeatureTable(), and Impala::Core::VideoSet::ConcatFeatures::HandleDoneFile(). 00372 { 00373 int totalLength = GetTotalFeatureVectorLength(); 00374 int size = CheckEqualSize(); 00375 if (size == -1) 00376 { 00377 ILOG_ERROR("Tables do not have same size"); 00378 return 0; 00379 } 00380 FeatureTable* res = new FeatureTable(resultDef, size, totalLength); 00381 int dstColumn = 0; 00382 for (int i=0 ; i<Size() ; i++) 00383 { 00384 FeatureTable* table = GetTable(i); 00385 if (i == 0) 00386 Column::Copy(res->GetColumn1(), table->GetColumn1(), size, 0, 0); 00387 Vector::SetPart(res->GetColumn2(), table->GetColumn2(), dstColumn); 00388 dstColumn += table->GetFeatureVectorLength(); 00389 } 00390 res->SetSize(size); 00391 return res; 00392 }
Here is the call graph for this function:
|