📄 vnl_gaussian_kernel_1d.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 + -