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

void Impala::Application::IDo::FeatureExec ( CString  feature1,
CString  feature2,
CString  feature3,
CString  featureLimit,
CString  featureIni 
) [inline]

Definition at line 784 of file mainIDo.cpp.

References Exec(), GetFrameWalk(), GetWalkerProg(), ILOG_ERROR, Impala::MakeString(), mNCPU, mProtoSet, mSetName, mTaskBlockSize, mTaskNrBlocks, and mVideoSet.

Referenced by FeatureWG(), and FeatureWGclus960sp().

00786     {
00787         if (mProtoSet.empty())
00788         {
00789             ILOG_ERROR("FeatureExec: need protoset");
00790             return;
00791         }
00792 
00793         String prog = GetWalkerProg();
00794         String frameWalk = GetFrameWalk();
00795         String cmd1 = "viseval " + mSetName + " " + mProtoSet + " " +
00796             feature1 + ".txt " + featureLimit + " " + frameWalk +
00797             " --ini ${IMPALAROOT}/src/script/" + featureIni + " --report 10";
00798         int ncpu = (mTaskBlockSize > 0) ? mTaskBlockSize : mNCPU;
00799         for (int i=0 ; i<mTaskNrBlocks ; i++)
00800         {
00801             String startT("");
00802             if (mTaskBlockSize > 0)
00803                 startT = " --startTask " + MakeString(i * mTaskBlockSize);
00804             Exec(prog, cmd1 + startT, ncpu);
00805         }
00806         Exec(prog, "concatfeatures " + mSetName + " " + feature1 + ".txt " +
00807              frameWalk + " --virtualWalk");
00808         //Exec(prog, "exportfeatures " + mSetName + " 25 " + feature1 + " " +
00809         //     frameWalk + " --virtualWalk " + segm);
00810 
00811         String cmd2 = "visgaboreval " + mSetName + " " + mProtoSet + " " +
00812             feature2 + ".txt " + featureLimit + " " + frameWalk +
00813             " --ini ${IMPALAROOT}/src/script/" + featureIni + " --report 10";
00814         for (int i=0 ; i<mTaskNrBlocks ; i++)
00815         {
00816             String startT("");
00817             if (mTaskBlockSize > 0)
00818                 startT = " --startTask " + MakeString(i * mTaskBlockSize);
00819             Exec(prog, cmd2 + startT, ncpu);
00820         }
00821         Exec(prog, "concatfeatures " + mSetName + " " + feature2 + ".txt " +
00822              frameWalk + " --virtualWalk");
00823         //Exec(prog, "exportfeatures " + mSetName + " 25 " + feature2 + " " +
00824         //     frameWalk + " --virtualWalk " + segm);
00825 
00826         String segm = (mVideoSet) ? "--segmentation" : "";
00827         if (mTaskBlockSize > 0)
00828             frameWalk = "";
00829         Exec(prog, "concatfeatures " + mSetName + " " + feature3 + " " +
00830              feature1 + " " + feature2 + " " + frameWalk + " --virtualWalk " +
00831              segm);
00832     }

Here is the call graph for this function:


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