📄 filters.h
字号:
// Filters.h: interface for the RxxFilters class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_FILTERS_H__5F59EF42_AA59_4CC3_8B75_29B038E09026__INCLUDED_)#define AFX_FILTERS_H__5F59EF42_AA59_4CC3_8B75_29B038E09026__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000class RxxFilters {public: BYTE* SobelProcessing(unsigned short *pGrayImage, int nCol, int nRow); BYTE* CannyProcessing(unsigned short* pGrayImage, int nCol, int nRow); BYTE* GrayProcessing(); void GaussianConvolution(unsigned short *data, int row, int col,int rMask, int cMask, double sigma); RxxFilters(); virtual ~RxxFilters(); BYTE *m_pCanny;protected: void convolution(unsigned short *data,int row, int col, double *convolutionMask,int mRow,int mCol); double convolveMask(unsigned short *pData,double *pConvolutionMask,int nStartIndex, int col, int mCol); void intConvolution(unsigned short *data,int row, int col, double *convolutionMask,int mRow,int mCol); void genGaussMask(double *gaussMask,int row,int col,double sigma); double gaussian(double u,double v,double twoSigmaSqWithConst); void Empty();};#endif // !defined(AFX_FILTERS_H__5F59EF42_AA59_4CC3_8B75_29B038E09026__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -