Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

strk_info_tracker_params.h

Go to the documentation of this file.
00001 // This is brl/bseg/strk/strk_info_tracker_params.h
00002 #ifndef strk_info_tracker_params_h_
00003 #define strk_info_tracker_params_h_
00004 //:
00005 // \file
00006 // \brief parameter mixin for strk_info_tracker
00007 //
00008 // \author
00009 //    Joseph L. Mundy - August. 20, 2003
00010 //    Brown University
00011 //
00012 //-----------------------------------------------------------------------------
00013 #include <gevd/gevd_param_mixin.h>
00014 #include <vcl_iosfwd.h>
00015 
00016 class strk_info_tracker_params : public gevd_param_mixin
00017 {
00018  public:
00019   strk_info_tracker_params(const int n_samples = 10,
00020                            const float search_radius = 5.0,
00021                            const float angle_range = 0.0,
00022                            const float scale_range = 0.0,
00023                            const float sigma = 1.0,
00024                            const bool gradient_info = true,
00025                            const bool color_info = false,
00026                            const float min_gradient = 0,
00027                            const float parzen_sigma = 0,
00028                            const unsigned int intensity_hist_bins = 16,
00029                            const unsigned int gradient_dir_hist_bins = 8,
00030                            const unsigned int color_hist_bins = 8,
00031                            const bool use_background = false,
00032                            const bool renyi_joint_entropy = false,
00033                            const bool verbose = false,
00034                            const bool debug = false);
00035 
00036   strk_info_tracker_params(const strk_info_tracker_params& old_params);
00037  ~strk_info_tracker_params() {}
00038 
00039   bool SanityCheck();
00040   friend
00041     vcl_ostream& operator<<(vcl_ostream& os,const strk_info_tracker_params& tp);
00042  protected:
00043   void InitParams(int n_samples,
00044                   float search_radius,
00045                   float angle_range,
00046                   float scale_range,
00047                   float sigma,
00048                   bool gradient_info,
00049                   bool color_info,
00050                   float min_gradient,
00051                   float parzen_sigma,
00052                   unsigned int intensity_hist_bins,
00053                   unsigned int gradient_dir_hist_bins,
00054                   unsigned int color_hist_bins,
00055                   bool use_background,
00056                   bool renyi_joint_entropy,
00057                   bool verbose,
00058                   bool debug);
00059  public:
00060   //
00061   // Parameter blocks and parameters
00062   //
00063   int n_samples_;           //!< number of samples generated per iteration
00064   float search_radius_;     //!< window size for generating samples
00065   float angle_range_;       //!< angle range for generating samples
00066   float scale_range_;       //!< scale range for generating samples
00067   float sigma_;             //!< smoothing kernel radius for estimating gradient
00068   bool gradient_info_;      //!< Combine gradient and intensity info
00069   bool color_info_;         //!< Combine color and intensity info
00070   float min_gradient_;      //!< minimum gradient magnitude to be considered
00071   float parzen_sigma_;      //!< smoothing for the histogram density
00072   unsigned int intensity_hist_bins_; //!< number of intensity histogram bins
00073   unsigned int gradient_dir_hist_bins_;//!< number of grad dir histogram bins
00074   unsigned int color_hist_bins_;//!< number of color histogram bins
00075   bool use_background_;     //!< employ a background model
00076   bool renyi_joint_entropy_;//!< use renyi entropy for joint distributions
00077   bool verbose_;            //!< informative messages to cout
00078   bool debug_;              //!< informative debug messages to cout
00079 };
00080 
00081 #endif // strk_info_tracker_params_h_

Generated on Thu Jan 10 14:53:19 2008 for contrib/brl/bseg/strk by  doxygen 1.4.4