Definition at line 396 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(), and Impala::Core::Table::Table::SetSize(). Referenced by Impala::Core::VideoSet::ConcatFeatures::HandleDoneFile(). 00397 { 00398 int totalLength = GetTotalFeatureVectorLength(); 00399 int size = CheckEqualSize(); 00400 if (size == -1) 00401 { 00402 ILOG_ERROR("Tables do not have same size"); 00403 return 0; 00404 } 00405 FeatureTable* res = new FeatureTable(resultDef, size, totalLength); 00406 int dstColumn = 0; 00407 for (int col=0 ; col<totalLength ; col++) 00408 { 00409 int feat = col / 30; 00410 int j = col % 30; 00411 int agg = j / 15; 00412 int anno = j % 15; 00413 FeatureTable* table = GetTable(anno * 4 + feat); 00414 if (col == 0) 00415 Column::Copy(res->GetColumn1(), table->GetColumn1(), size, 0, 0); 00416 table->GetColumn2()->SetSize(size); 00417 Vector::SetPart(res->GetColumn2(), table->GetColumn2(), agg, 1, col); 00418 } 00419 res->SetSize(size); 00420 return res; 00421 }
Here is the call graph for this function:
|