void cAgglomRRL::Add ( cResul_RL & aRL, cPoseCam * aPC1, cPoseCam * aPC2 ) { if (mEIRL.ResidusIndiv().IsInit()) { std::string aN12 = aPC1->Name() + "@" + aPC2->Name(); if (mAutomIndivIm.Match(aN12)) { std::string aNFile = MatchAndReplace ( mAutomIndivIm, aN12, mEIRL.ResidusIndiv().Val().Name() ); aRL.MakeFile ( mAppli.Param().DirectoryChantier().Val()+aNFile, mEIRL.DynIm(), mEIRL.Signed().Val() ); } } }
void cAppliBATCH_MICMAC::act(const ElResParseDir & aRPD) { std::string aName (aRPD.name()); std::string aNameLoc = aName.substr(mDirIm.size(),aName.size()); if (! mAutomArg1->Match(aNameLoc)) return; for ( std::list<string>::iterator itP=mCurB->PatternCommandeBatch().begin(); itP != mCurB->PatternCommandeBatch().end(); itP++ ) { bool aReplace = mAutomArg1->Replace(*itP); ELISE_ASSERT(aReplace,"Cannot Replace in cAppliBATCH_MICMAC::act"); ExecCom(mAutomArg1->LastReplaced()); } }
void cAppliBATCH_MICMAC::DoOneBatch(cOneBatch & aBatch) { mCurB = & aBatch; mPSel = mCurB->PatternSelImBatch(); mAutomArg1 = new cElRegex(mPSel,15); ELISE_ASSERT(mAutomArg1->IsOk(),"Compile/DoOneBatch"); mDirIm = mAPM.DirImagesInit() ; ElParseDir(mDirIm.c_str(),*this,1); delete mAutomArg1; }