contrib/brl/bseg/sdet/sdet_harris_detector_params.h
Go to the documentation of this file.
00001 // This is brl/bseg/sdet/sdet_harris_detector_params.h
00002 #ifndef sdet_harris_detector_params_h_
00003 #define sdet_harris_detector_params_h_
00004 //:
00005 // \file
00006 // \brief parameter mixin for sdet_harris_detector
00007 //
00008 // \author
00009 //    Joseph L. Mundy - Feb. 26, 2003
00010 //    Brown University
00011 //
00012 //-----------------------------------------------------------------------------
00013 #include <gevd/gevd_param_mixin.h>
00014 #include <vcl_iosfwd.h>
00015 
00016 class sdet_harris_detector_params : public gevd_param_mixin
00017 {
00018  public:
00019   sdet_harris_detector_params(const float sigma=1.0f,
00020                               const float thresh = 2.0f,
00021                               const int n=1,
00022                               const float percent_corners=80.0f,
00023                               const float scale_factor = 0.04f,
00024                               const bool use_vil_harris=false);
00025 
00026   sdet_harris_detector_params(const sdet_harris_detector_params& old_params);
00027  ~sdet_harris_detector_params(){}
00028 
00029   bool SanityCheck();
00030   friend
00031     vcl_ostream& operator<<(vcl_ostream&,const sdet_harris_detector_params& dp);
00032  protected:
00033   void InitParams(float sigma,
00034                   float thresh,
00035                   int n,
00036                   float percent_corners,
00037                   float scale_factor,
00038                   bool use_vil_harris);
00039  public:
00040   //
00041   // Parameter blocks and parameters
00042   //
00043   float sigma_;       //!< sigma of the Gaussian smoothing kernel
00044   float thresh_;      //!< threshold for weak corners
00045   int n_;             //!< size of the gradient matrix neighborhood (2n+1)x(2n+1)
00046   float percent_corners_; //!< maximum of corners as a percent of total
00047   float scale_factor_;    //!< Harris trace weight
00048   bool use_vil_harris_;  //!< use vil/algo/vil_corners for strength
00049 };
00050 
00051 #endif // sdet_harris_detector_params_h_