Skip to content

Commit

Permalink
add AlignmentAlgo=off option (#1867)
Browse files Browse the repository at this point in the history
  • Loading branch information
nliaudat committed Jan 18, 2023
1 parent 6c153cd commit 3de4cc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/components/jomjol_flowcontroll/ClassFlowAlignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ bool ClassFlowAlignment::ReadParameter(FILE* pfile, string& aktparamgraph)
std::vector<string> splitted;
int suchex = 40;
int suchey = 40;
int alg_algo = 0;
int alg_algo = 0; //default=0; 1 =HIGHACCURACY; 2= FAST; 3= OFF


aktparamgraph = trim(aktparamgraph);
Expand Down Expand Up @@ -130,6 +130,8 @@ bool ClassFlowAlignment::ReadParameter(FILE* pfile, string& aktparamgraph)
alg_algo = 1;
if (toUpper(splitted[1]) == "FAST")
alg_algo = 2;
if (toUpper(splitted[1]) == "OFF")
alg_algo = 3;
}
}

Expand Down Expand Up @@ -195,8 +197,11 @@ bool ClassFlowAlignment::doFlow(string time)
}
}

//no align algo if set to 3 = off
if(References[0].alignment_algo != 3){
delete AlignAndCutImage;
AlignAndCutImage = new CAlignAndCutImage(ImageBasis, ImageTMP);
}
if (!AlignAndCutImage)
{
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Can't allocate AlignAndCutImage -> Exec this round aborted!");
Expand Down
1 change: 1 addition & 0 deletions sd-card/html/edit_config_param.html
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ <h2>Configuration</h2>
<option value="default" selected>Default</option>
<option value="highAccuracy" >HighAccuracy</option>
<option value="fast" >Fast</option>
<option value="off" >Fast</option>
</select>
</td>
<td style="font-size: 80%;">
Expand Down

0 comments on commit 3de4cc7

Please sign in to comment.