Go to the documentation of this file.00001
00002 #include "vdgl_fit_lines_params.h"
00003
00004
00005
00006 #include <vcl_iostream.h>
00007
00008 bool vdgl_fit_lines_params::SanityCheck()
00009 {
00010 bool valid = true;
00011
00012 if (min_fit_length_<3)
00013 {
00014 vcl_cerr << "ERROR: need at least 3 points for a fit\n";
00015 valid = false;
00016 }
00017 if (rms_distance_>1)
00018 {
00019 vcl_cerr << "ERROR: a line fit should be better than one pixel rms\n";
00020 valid = false;
00021 }
00022
00023 return valid;
00024 }
00025
00026 vcl_ostream& operator<<(vcl_ostream& os, const vdgl_fit_lines_params& flp)
00027 {
00028 os << "vdgl_fit_lines_params:\n[---\n"
00029 << "min fit length " << flp.min_fit_length_ << vcl_endl
00030 << "rms distance tolerance" << flp.rms_distance_ << vcl_endl
00031 << "---]\n";
00032 return os;
00033 }