contrib/brl/bseg/brip/brip_watershed_params.h
Go to the documentation of this file.
00001 #ifndef brip_watershed_params_h_
00002 #define brip_watershed_params_h_
00003 //-----------------------------------------------------------------------------
00004 //:
00005 // \file
00006 // \author  Joe Mundy July 8, 2004
00007 // \brief brip_watershed_params - Parameter block
00008 //
00009 // \verbatim
00010 //  Modifications:
00011 //   Ported to vxl July 01, 2004
00012 // \endverbatim
00013 //-----------------------------------------------------------------------------
00014 #include <gevd/gevd_param_mixin.h>
00015 #include <vcl_iosfwd.h>
00016 
00017 class brip_watershed_params : public gevd_param_mixin
00018 {
00019  public:
00020   brip_watershed_params(float sigma  = 1.0,
00021                         float thresh  = 10.0,
00022                         bool eight_connected = true,
00023                         bool verbose = false);
00024 
00025 
00026   brip_watershed_params(const brip_watershed_params& old_params);
00027   bool SanityCheck();
00028   friend vcl_ostream& operator<<(vcl_ostream&, const brip_watershed_params& wp);
00029  protected:
00030   void InitParams(float sigma, float thresh,
00031                   bool eight_connected,
00032                   bool verbose);
00033  public:
00034   //
00035   // Parameters for detecting edgel chains
00036   //
00037   float sigma_;            //!< Standard deviation of the smoothing kernel
00038   float thresh_;           //!< Threshold (min grad difference for a seed)
00039   bool eight_connected_;   //!< Neighborhood connectivity (8 vs 4)
00040   bool verbose_;           //!< output debug messages
00041 };
00042 
00043 #endif