contrib/brl/bbas/bsta/bsta_gauss.h
Go to the documentation of this file.
00001 // This is brl/bbas/bsta/bsta_gauss.h
00002 #ifndef bsta_gauss_h_
00003 #define bsta_gauss_h_
00004 //:
00005 // \file
00006 // \brief 1-d and 2-d Gaussian smoothing for Parzen window calculations
00007 // \author Joseph Mundy
00008 // \date May 19, 2004
00009 //
00010 // A very simple Gaussian smoothing process to be used by gauss
00011 // Keeps the link dependence very light
00012 //
00013 // \verbatim
00014 //  Modifications
00015 // \endverbatim
00016 #include <vcl_vector.h>
00017 #include <vbl/vbl_array_2d.h>
00018 #include <vbl/vbl_array_3d.h>
00019 class bsta_gauss
00020 {
00021  public:
00022   ~bsta_gauss(){}
00023   static double bsta_gaussian(const double x, const double sigma);
00024 
00025   static void bsta_1d_gaussian_kernel(const double sigma, const double fuzz,
00026                                       int& radius,
00027                                       vcl_vector<double>& kernel);
00028 
00029   static void bsta_1d_gaussian(const double sigma,
00030                                vcl_vector<double> const& in_buf,
00031                                vcl_vector<double>& out_buf);
00032 
00033   static void bsta_2d_gaussian(const double sigma,
00034                                vbl_array_2d<double> const& in_buf,
00035                                vbl_array_2d<double>& out_buf);
00036 
00037   static void bsta_3d_gaussian(const double sigma,
00038                                vbl_array_3d<double> const& in_buf,
00039                                vbl_array_3d<double>& out_buf);
00040  private:
00041   //only static methods
00042   bsta_gauss();
00043 };
00044 
00045 #endif // bsta_gauss_h_