@@ -134,7 +134,7 @@ int main(int argc, char* argv[]) {
134134 std::string output_subfolder = " OUTPUT" ;
135135 auto singlevoxelprojection = false ;
136136 auto multithreshold = false ;
137- auto inThresholdString = (method == 2 ) ? " 3.3" : " 1.2" ;
137+ std::string inThresholdString = (method == 2 ) ? " 3.3" : " 1.2" ;
138138 auto verbose = false ;
139139
140140 // Parse, cast and set optional argument
@@ -278,7 +278,7 @@ int main(int argc, char* argv[]) {
278278 prodFile1 << stdv << std::endl;
279279
280280 QString thres_str = QString::fromStdString (inThresholdString);
281- if (multithreshold && (thres_str.length ()==3 && thres_str.contains (' .' )) {
281+ if (multithreshold && (thres_str.length ()==3 && thres_str.contains (' .' ))) {
282282 thres_str = (method == 2 ) ? " 1.0:0.1:5.0" : " 0.7:0.01:1.61" ;
283283 }
284284
@@ -297,12 +297,12 @@ int main(int argc, char* argv[]) {
297297 int ix = 0 ;
298298 bool ok_to_double = true ;
299299 while (ix<thres_list.size () && ok_to_double) {
300- input_threshold_vector.push_back (thres_list.at (ix).toDouble (ok_to_double));
300+ input_threshold_vector.push_back (thres_list.at (ix).toDouble (& ok_to_double));
301301 ix++;
302302 }
303303
304304 if (!ok_to_double){
305- MITK_ERROR << (" Error parsing value: " + QString::number ( thres_list.at (ix - 1 ) )).toStdString ();
305+ MITK_ERROR << (" Error parsing value: " + thres_list.at (ix - 1 )).toStdString ();
306306 return EXIT_FAILURE;
307307 }
308308
@@ -321,8 +321,8 @@ int main(int argc, char* argv[]) {
321321 for (auto & this_value : threshold_vector) {
322322
323323 double this_thres = (method == 2 ) ? mean + this_value * stdv : mean * this_value;
324- double thispercentage = scar->Thresholding (thisthres );
325- prodFile1 << " V=" << this_value << " , SCORE=" << thispercentage << std::endl;
324+ double this_percentage = scar->Thresholding (this_thres );
325+ prodFile1 << " V=" << this_value << " , SCORE=" << this_percentage << std::endl;
326326 }
327327
328328 prodFile1.close ();
0 commit comments