Limit the number of prototypes to maxNr per feature.
Definition at line 428 of file Computor.h. References Impala::Core::Feature::FeatureTableSet::GetTable(), ILOG_INFO, mProtoFeatureTableSet, mProtoLimit, and Impala::Core::Feature::FeatureTableSet::Size(). Referenced by Impala::Core::Feature::VisSem::ReadPrototypes(). 00429 { 00430 mProtoLimit = maxNr; 00431 for (int i=0 ; i<mProtoFeatureTableSet->Size() ; i++) 00432 { 00433 FeatureTable* t = mProtoFeatureTableSet->GetTable(i); 00434 if (t->Size() > maxNr) 00435 { 00436 ILOG_INFO("limiting " << t->GetFeatureDefinition().AsString() 00437 << " to " << maxNr); 00438 t->SetSize(maxNr); 00439 t->GetColumn2()->SetSize(maxNr); // "bug" in Vector::Similarity 00440 } 00441 } 00442 }
Here is the call graph for this function:
|