Skip to content

Commit 4a58c61

Browse files
committed
modify autoparameters text output and make use of verbose flag
1 parent 34fd62a commit 4a58c61

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/algorithm/APRConverter.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -823,12 +823,10 @@ void APRConverter<ImageType>::autoParametersLiEntropy(const PixelData<T> &image,
823823
par.sigma_th = threshold_li(lis_subsampled);
824824
fine_grained_timer.stop_timer();
825825

826-
std::cout << "Used parameters: " << std::endl;
827-
std::cout << "I_th: " << par.Ip_th << std::endl;
828-
std::cout << "sigma_th: " << par.sigma_th << std::endl;
829-
std::cout << "grad_th: " << par.grad_th << std::endl;
830-
std::cout << "relative error (E): " << par.rel_error << std::endl;
831-
std::cout << "lambda: " << par.lambda << std::endl;
826+
if(verbose) {
827+
std::cout << "Automatic parameter tuning found sigma_th = " << par.sigma_th <<
828+
" and grad_th = " << par.grad_th << std::endl;
829+
}
832830
}
833831

834832

0 commit comments

Comments
 (0)