Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

void Impala::Application::IDo::ClassifyExec ( CString  feature,
bool  precomputed 
) [inline]

Definition at line 1302 of file mainIDo.cpp.

References Exec(), GetFrameWalk(), GetWalkerProg(), ILOG_ERROR, mAnnoSet, mClassifyIndexCat, mComputeKernelData, mConcepts, mDoClassifyIndex, mFeatureIndexCat, mFik, mImpalaTmp, mKernelDataOnly, mModel, mSetName, and mStoreKernelData.

Referenced by ClassifyOldWG(), ClassifyOldWGclus960sp(), ClassifyPreAllSift(), ClassifyPreAllSurf(), ClassifyPreWG(), ClassifyPreWGclus960sp(), and HandleCmd().

01303     {
01304         if (mAnnoSet.empty())
01305         {
01306             ILOG_ERROR("ClassifyExec: need annoset");
01307             return;
01308         }
01309         if (mConcepts.empty())
01310         {
01311             ILOG_ERROR("ClassifyExec: need concepts");
01312             return;
01313         }
01314         if (mModel.empty())
01315         {
01316             ILOG_ERROR("ClassifyExec: need model");
01317             return;
01318         }
01319 
01320         String prog = GetWalkerProg();
01321         String frameWalk = GetFrameWalk();
01322         String precompute = (precomputed) ? "--precomputed 1" : "";
01323         String fik = (mFik) ? "--fik 1"  : "";
01324         String fiCat("");
01325         if (! mFeatureIndexCat.empty())
01326             fiCat = "--featureIndexCat " + mFeatureIndexCat;
01327         String ciCat("");
01328         if (! mClassifyIndexCat.empty())
01329             ciCat = "--classifyIndexCat " + mClassifyIndexCat;
01330 
01331         if (mComputeKernelData)
01332         {
01333             Exec(prog, "computekerneldata " + mSetName + " " + mAnnoSet + " " + 
01334                  mModel + " " + feature + " " + frameWalk +
01335                  " --virtualWalk --tmpPath " + mImpalaTmp + " " + fiCat);
01336             if (mKernelDataOnly.empty())
01337             {
01338                 Exec(prog, "applyconcepts " + mSetName + " " + mAnnoSet + " " + 
01339                      mConcepts + " " + mModel + " " + feature + " " +
01340                      precompute + " " + frameWalk + " --virtualWalk --tmpPath "
01341                      + mImpalaTmp);
01342             }
01343         }
01344         else
01345         {
01346             if (ciCat.empty())
01347             {
01348                 Exec(prog, "applyconcepts " + mSetName + " " + mAnnoSet +
01349                      " " + mConcepts + " " + mModel + " " + feature + " " +
01350                      precompute + " " + frameWalk + " --virtualWalk --tmpPath "
01351                      + mImpalaTmp + " " + mStoreKernelData + " "
01352                      + mKernelDataOnly + " " + fiCat + " " + fik);
01353             }
01354             else
01355             {
01356                 Exec(prog, "applyconceptsindex " + mSetName + " " + mAnnoSet +
01357                      " " + mConcepts + " " + mModel + " " + feature + " " +
01358                      precompute + " " + frameWalk + " --virtualWalk --tmpPath "
01359                      + mImpalaTmp + " " + mStoreKernelData + " "
01360                      + mKernelDataOnly + " " + ciCat + " " + fik);
01361             }
01362         }
01363         if (mDoClassifyIndex && mKernelDataOnly.empty() && ciCat.empty())
01364         {
01365             Exec(prog, "indexconcepts " + mSetName + " " + mConcepts + " " +
01366                  mModel + " " + feature + " " + frameWalk + " --virtualWalk", 1);
01367         }
01368     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:14:24 2011 for ImpalaSrc by  doxygen 1.5.1