⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vnl_gaussian_kernel_1d.h

📁 InsightToolkit-1.4.0(有大量的优化算法程序)
💻 H
字号:
// This is vxl/vnl/algo/vnl_gaussian_kernel_1d.h
#ifndef vnl_gaussian_kernel_1d_h_
#define vnl_gaussian_kernel_1d_h_
#ifdef VCL_NEEDS_PRAGMA_INTERFACE
#pragma interface
#endif
//:
// \file
// \brief Holds one half of a discretely sampled 1D gaussian distribution
// \author Andrew W. Fitzgibbon, Oxford RRG
// \date   07 Aug 97
//
// \verbatim
// Modifications
//  970807 AWF Initial version.
//  dac (Manchester) 28/03/2001: tidied up documentation
// \endverbatim

#include <vnl/vnl_vector.h>

//: Holds one half of a discretely sampled 1D gaussian distribution
//  vnl_gaussian_kernel_1d is a class that holds one half of a discretely
//  sampled 1D gaussian distribution.

class vnl_gaussian_kernel_1d
{
 public:
  // Constructors/Destructors--------------------------------------------------
  vnl_gaussian_kernel_1d(double sigma, double cutoff = 0.5/256.0);

  double G(double x) const;

  int width() const { return vec_.size(); }
  double operator [] (int i) const { return vec_[i]; }

 protected:
  // Data Members--------------------------------------------------------------
  vnl_vector<double> vec_;
  double inscale_;
};

#endif // vnl_gaussian_kernel_1d_h_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -