contrib/brl/bseg/brip/brip_para_cvrg_params.h
Go to the documentation of this file.
00001 #ifndef brip_para_cvrg_params_h_
00002 #define brip_para_cvrg_params_h_
00003 //-----------------------------------------------------------------------------
00004 //:
00005 // \file
00006 // \author  Joe Mundy July 31, 1999
00007 // \brief brip_para_cvrg_params - Parameter block
00008 //
00009 // \verbatim
00010 //  Modifications:
00011 //   Ported to vxl July 01, 2004
00012 //   9 Sept 2004 - Peter Vanroose - removed InitParams
00013 // \endverbatim
00014 //-----------------------------------------------------------------------------
00015 #include <gevd/gevd_param_mixin.h>
00016 #include <vcl_iosfwd.h>
00017 
00018 class brip_para_cvrg_params : public gevd_param_mixin
00019 {
00020  public:
00021   brip_para_cvrg_params(float sigma = 1.f, float thresh = 20.f,
00022                         float gauss_tail = 0.015f,
00023                         int proj_width =7, int proj_height=2,
00024                         int sup_radius = 1, bool verbose = false)
00025   : sigma_(sigma), thresh_(thresh), gauss_tail_(gauss_tail),
00026     proj_width_(proj_width), proj_height_(proj_height),
00027     sup_radius_(sup_radius), verbose_(verbose) {}
00028 
00029   brip_para_cvrg_params(brip_para_cvrg_params const& pcp)
00030   : gevd_param_mixin(), sigma_(pcp.sigma_), thresh_(pcp.thresh_),
00031     gauss_tail_(pcp.gauss_tail_), proj_width_(pcp.proj_width_),
00032     proj_height_(pcp.proj_height_), sup_radius_(pcp.sup_radius_),
00033     verbose_(pcp.verbose_) {}
00034 
00035   bool SanityCheck();
00036 
00037   //
00038   float sigma_;       //!< Standard deviation of the smoothing kernel
00039   float thresh_;      //!< Low hysteresis threshold
00040   float gauss_tail_;  //!< Used in determining the convolution kernel
00041   int proj_width_;    //!< 1/2 the projection region width
00042   int proj_height_;   //!< 1/2 the projection region height
00043   int sup_radius_;    //!< The non_maximum suppression kernel width.
00044   bool verbose_;      //!< output debug messages
00045 };
00046 
00047 vcl_ostream& operator<<(vcl_ostream& os, brip_para_cvrg_params const& pcp);
00048 
00049 #endif