Commit 0eac704c authored by Krzysztof Gonciarz's avatar Krzysztof Gonciarz
Browse files

Print method for parameters

parent c1342909
......@@ -6,6 +6,7 @@
#define PARTPLAY_APR_PARAMETERS_HPP
#include <string>
#include <iostream>
class APRParameters {
......@@ -46,6 +47,22 @@ public:
std::string input_image_name;
std::string input_dir;
std::string mask_file;
friend std::ostream & operator<<(std::ostream &os, const APRParameters &obj) {
os << "Ip_th=" << obj.Ip_th << "\n";
os << "SNR_min=" << obj.SNR_min << "\n";
os << "lambda=" << obj.lambda << "\n";
os << "min_signal=" << obj.min_signal << "\n";
os << "rel_error=" << obj.rel_error << "\n";
os << "sigma_th=" << obj.sigma_th << "\n";
os << "sigma_th_max=" << obj.sigma_th_max << "\n";
os << "auto_parameters=" << (obj.auto_parameters ? "true" : "false") << "\n";
os << "normalized_input=" << (obj.normalized_input ? "true" : "false") << "\n";
os << "neighborhood_optimization=" << (obj.neighborhood_optimization ? "true" : "false") << "\n";
os << "output_steps=" << (obj.output_steps ? "true" : "false") << "\n";
return os;
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment