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

📄 linear.hh

📁 PIXIL is a small footprint operating environment, complete with PDA PIM applications, a browser and
💻 HH
字号:
/*********************************************************************  libvideogfx/graphics/filters/linear.hh  purpose:    linear filters:    - LowPass ( 0 1 0 / 1 4 1 / 0 1 0 )    - LowPass ( 1 1 1 / 1 1 1 / 1 1 1 )  notes:  to do:  author(s):   - Dirk Farin, farin@ti.uni-mannheim.de     University Mannheim, Dept. Circuitry and Simulation     B 6,26 EG, room 0.10 / D-68131 Mannheim / Germany  modifications:    21/Jul/1999 - Dirk Farin - first implementation *********************************************************************/#ifndef LIBVIDEOGFX_GRAPHICS_FILTERS_LINEAR_HH#define LIBVIDEOGFX_GRAPHICS_FILTERS_LINEAR_HH#include "libvideogfx/graphics/basic/image.hh"#include "libvideogfx/containers/array.hh"/* Low-pass filtering is done using this kernel:   1   /  0  1  0  \   - * |  1  4  1  |   8   \  0  1  0  /*/void LowPass_5pt(const Image_YUV<Pixel>& img,Image_YUV<Pixel>& dest);/* Low-pass filtering is done using this kernel:   1   /  1  1  1  \   - * |  1  1  1  |   9   \  1  1  1  /*/void LowPass_3x3mean(const Image_YUV<Pixel>& img,Image_YUV<Pixel>& dest);template <class Pel> void ConvolveH(const Bitmap<Pel>& src,Bitmap<Pel>& dst,				    const Array<double>& filter,bool useborder=true);template <class Pel> void ConvolveV(const Bitmap<Pel>& src,Bitmap<Pel>& dst,				    const Array<double>& filter,bool useborder=true);template <class Pel> void ConvolveHV(const Bitmap<Pel>& src,Bitmap<Pel>& dst,				     const Array<double>& filter,bool useborder=true);void NormalizeFilter(Array<double>& filter); // Make coefficients sum up to 1.0 .void CreateGaussFilter     (Array<double>& filter,double sigma,double cutoffval=0.01,bool normalize=true);void CreateGaussDerivFilter(Array<double>& filter,double sigma,double cutoffval=0.01);#endif

⌨️ 快捷键说明

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