00001 // This is brl/bseg/sdet/sdet_fit_lines_params.h 00002 #ifndef sdet_fit_lines_params_h_ 00003 #define sdet_fit_lines_params_h_ 00004 //: 00005 // \file 00006 // \brief parameter mixin for sdet_fit_lines 00007 // 00008 // \author 00009 // Joseph L. Mundy - April 10, 2003 00010 // Brown University 00011 // 00012 //----------------------------------------------------------------------------- 00013 #include <vbl/vbl_ref_count.h> 00014 #include <gevd/gevd_param_mixin.h> 00015 #include <vcl_iosfwd.h> 00016 00017 class sdet_fit_lines_params : public gevd_param_mixin, public vbl_ref_count 00018 { 00019 public: 00020 sdet_fit_lines_params(int min_fit_length = 10, 00021 double rms_distance = 0.1); 00022 00023 sdet_fit_lines_params(const sdet_fit_lines_params& old_params); 00024 ~sdet_fit_lines_params() {} 00025 00026 bool SanityCheck(); 00027 friend 00028 vcl_ostream& operator<<(vcl_ostream& os, const sdet_fit_lines_params& flp); 00029 protected: 00030 void InitParams(int min_fit_length, 00031 double rms_distance); 00032 public: 00033 // 00034 // Parameter blocks and parameters 00035 // 00036 int min_fit_length_; //!< the shortest curve to fit a line 00037 double rms_distance_; //!< the max rms distance error for the fit 00038 }; 00039 00040 #endif // sdet_fit_lines_params_h_