Ask Your Question

Revision history [back]

Ok i was wrong I look in my code and I have found :

    indRes = (int)op["res"];
    indEtape = (int)op["indEtape"];
    idOperation = (int)op["idOperation"];
    nomSequence = (string)op["nomSequence"];
    cv::FileNode opl = op["intParam"];
    cv::FileNodeIterator it = opl.begin(), it_end = opl.end();
    for (; it != it_end; ++it)
     {
       intParam[(string)(*it)["nom"]] = DomaineParametreOp<int>((*it)["valeur"], (*it)["minVal"], (*it)["maxVal"], (*it)["pasVal"]);;
    }

for file like this

<operation0><op>fond_knn</op> <nboperande>1</nboperande> <op0>1</op0> <res>-1</res> <indetape>0</indetape> <idoperation>6</idoperation> <nomsequence>knn</nomsequence> <intparam> <_><nom>DetectShadows</nom> <valeur>0</valeur> <minval>0</minval> <maxval>1</maxval> <pasval>1</pasval> <_><nom>History</nom> <valeur>500</valeur> <minval>1</minval> <maxval>10000</maxval> <pasval>1</pasval> .......

Ok i was wrong I look have looked in my code and I have found :

    indRes = (int)op["res"];
    indEtape = (int)op["indEtape"];
    idOperation = (int)op["idOperation"];
    nomSequence = (string)op["nomSequence"];
    cv::FileNode opl = op["intParam"];
    cv::FileNodeIterator it = opl.begin(), it_end = opl.end();
    for (; it != it_end; ++it)
     {
       intParam[(string)(*it)["nom"]] = DomaineParametreOp<int>((*it)["valeur"], (*it)["minVal"], (*it)["maxVal"], (*it)["pasVal"]);;
    }

for file like this

<operation0><op>fond_knn</op> <nboperande>1</nboperande> <op0>1</op0> <res>-1</res> <indetape>0</indetape> <idoperation>6</idoperation> <nomsequence>knn</nomsequence> <intparam> <_><nom>DetectShadows</nom> <valeur>0</valeur> <minval>0</minval> <maxval>1</maxval> <pasval>1</pasval> <_><nom>History</nom> <valeur>500</valeur> <minval>1</minval> <maxval>10000</maxval> <pasval>1</pasval> .......

Ok i was wrong I have looked in my code and I have found :

cv::FileNode op = node;
nomOperation=(string)op["op"];
nbOperande= op["nbOperande"];
indOpFenetre.resize(nbOperande);
this->op.resize(nbOperande);
for (int i = 0; i < nbOperande; i++)
{
 indRes = (int)op["res"];
string s("op");
 indEtape = (int)op["indEtape"];
s += to_string(i);
 idOperation indOpFenetre[i] = (int)op["idOperation"];
op[s];
 this->op[i] = NULL;
}
indRes = (int)op["res"];
indEtape = (int)op["indEtape"];
idOperation = (int)op["idOperation"];
nomSequence = (string)op["nomSequence"];
 cv::FileNode opl = op["intParam"];
 cv::FileNodeIterator it = opl.begin(), it_end = opl.end();
 for (; it != it_end; ++it)
  {
    intParam[(string)(*it)["nom"]] = DomaineParametreOp<int>((*it)["valeur"], (*it)["minVal"], (*it)["maxVal"], (*it)["pasVal"]);;
 }

for file like this

<operation0><op>fond_knn</op> <nboperande>1</nboperande> <op0>1</op0> <res>-1</res> <indetape>0</indetape> <idoperation>6</idoperation> <nomsequence>knn</nomsequence> <intparam> <_><nom>DetectShadows</nom> <valeur>0</valeur> <minval>0</minval> <maxval>1</maxval> <pasval>1</pasval> <_><nom>History</nom> <valeur>500</valeur> <minval>1</minval> <maxval>10000</maxval> <pasval>1</pasval> .......image description

Ok i was wrong I have looked in my code and I have found :

cv::FileNode op = node;
nomOperation=(string)op["op"];
nbOperande= op["nbOperande"];
indOpFenetre.resize(nbOperande);
this->op.resize(nbOperande);
for (int i = 0; i < nbOperande; i++)
{
    string s("op");
    s += to_string(i);
    indOpFenetre[i] = op[s];
    this->op[i] = NULL;
}
indRes = (int)op["res"];
indEtape = (int)op["indEtape"];
idOperation = (int)op["idOperation"];
nomSequence = (string)op["nomSequence"];
cv::FileNode opl = op["intParam"];
cv::FileNodeIterator it = opl.begin(), it_end = opl.end();
for (; it != it_end; ++it)
 {
   intParam[(string)(*it)["nom"]] = DomaineParametreOp<int>((*it)["valeur"], (*it)["minVal"], (*it)["maxVal"], (*it)["pasVal"]);;
}

for file like this

image description