Definition at line 391 of file VisSem.h. References Impala::Core::Vector::ElemMax(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), Impala::Core::Feature::FeatureTableSet::GetTable(), Impala::Max(), Impala::Core::Feature::Computor::mPyramid, Impala::Core::Geometry::RectanglePyramid::NrRects(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Set2(), and Impala::Core::Feature::FeatureTableSet::Size(). Referenced by ComputeFeaturesPixelSet(). 00392 { 00393 for (int r=0 ; r<mPyramid.NrRects(regionFeature) ; r++) 00394 { 00395 Real64 maxSim = -1; 00396 for (int t=0 ; t<regionSim->Size() ; t++) 00397 { 00398 VectorReal64 regionVec = regionSim->GetTable(t)->Get2(r); 00399 maxSim = Impala::Max(maxSim, ElemMax(regionVec)); 00400 } 00401 for (int t=0 ; t<regionSim->Size() ; t++) 00402 { 00403 VectorReal64 regionVec = regionSim->GetTable(t)->Get2(r); 00404 for (int i=0 ; i<regionVec.Size() ; i++) 00405 regionVec[i] = (regionVec[i] == maxSim) ? 1.0 : 0.0; 00406 regionSim->GetTable(t)->Set2(r, regionVec); 00407 } 00408 } 00409 }
Here is the call graph for this function:
|