00001 // This is brl/bseg/sdet/sdet_nonmax_suppression_params.h 00002 #ifndef sdet_nonmax_suppression_params_h_ 00003 #define sdet_nonmax_suppression_params_h_ 00004 //: 00005 // \file 00006 // \brief parameter mixin for sdet_nonmax_suppression 00007 // 00008 // \author 00009 // H. Can Aras - Feb. 20, 2006 00010 // Brown University 00011 // 00012 //----------------------------------------------------------------------------- 00013 #include <gevd/gevd_param_mixin.h> 00014 #include <vcl_iosfwd.h> 00015 00016 // enumeration for the parabola fit type 00017 enum {PFIT_3_POINTS, PFIT_9_POINTS}; 00018 00019 class sdet_nonmax_suppression_params : public gevd_param_mixin 00020 { 00021 public: 00022 sdet_nonmax_suppression_params(const double thresh = 50, const int pfit_type = 0); 00023 00024 sdet_nonmax_suppression_params(const sdet_nonmax_suppression_params& old_params); 00025 ~sdet_nonmax_suppression_params(){} 00026 00027 bool SanityCheck(); 00028 friend 00029 vcl_ostream& operator<<(vcl_ostream&,const sdet_nonmax_suppression_params& dp); 00030 protected: 00031 void InitParams(double thresh, int pfit_type); 00032 public: 00033 //: points with gradient magnitude below thresh_*maximum_gradient_magnitude/100 will not be processed. 00034 double thresh_; 00035 int pfit_type_; 00036 }; 00037 00038 #endif // sdet_nonmax_suppression_params_h_