Definition at line 24 of file ClusterFeatures.h. References Impala::atoi(), Impala::CmdOptions::GetArg(), Impala::CmdOptions::GetNrArg(), Impala::Core::Feature::Computor::GetNrPixelFeatureSets(), Impala::Core::Feature::Computor::GetNrRegionFeatureSets(), ILOG_ERROR, ILOG_INFO, Impala::Core::Feature::ClusterorFactory::Instance(), Impala::Core::Feature::Computor::MakeRegionFeatureTableSet(), mClusterors, mComputor, and mReporter. 00026 { 00027 mReporter = reporter; 00028 mComputor = computor; 00029 00030 if (options.GetNrArg() < 7) 00031 ILOG_ERROR("missing argument"); 00032 String mode = options.GetArg(4); 00033 int nrWantedClusters = atoi(options.GetArg(5)); 00034 int nrSamplesAtime = atoi(options.GetArg(6)); 00035 ILOG_INFO("mode = " << mode << ", wanted = " << nrWantedClusters << 00036 ", samplesAtime = " << nrSamplesAtime); 00037 00038 mComputor->MakeRegionFeatureTableSet(); 00039 00040 for (int p=0 ; p<mComputor->GetNrPixelFeatureSets() ; p++) 00041 { 00042 for (int r=0 ; r<mComputor->GetNrRegionFeatureSets() ; r++) 00043 { 00044 //int minElemsInCluster = mComputor->GetRegionFeatureSetSize(r)+1; 00045 int minElemsInCluster = 2; 00046 Feature::ClusterorFactory::Instance().Construct 00047 (mClusterors, p, r, nrWantedClusters, nrSamplesAtime, 00048 minElemsInCluster, clusteror, options); 00049 } 00050 } 00051 00052 /* todo ?? 00053 if ((mode == "next") || (mode == "count")) 00054 { 00055 mComputor->ReadProtoFeatureTableSet("all"); 00056 mComputor->GetProtoFeatureTableSet()->Dump(false); 00057 for (int i=0 ; i<mClusterors.size() ; i++) 00058 { 00059 Clusteror* c = mClusterors[i]; 00060 FeatureTable* tab = mComputor->GetProtoFeatureTable 00061 (c->GetPixelFeatureSet(), c->GetRegionFeatureSet(), 00062 c->GetClusterType(), c->GetClusterVal()); 00063 c->InitClusterVec(tab, mode, nrWantedClusters); 00064 } 00065 } 00066 */ 00067 }
Here is the call graph for this function:
|