-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathFilter.h
More file actions
30 lines (27 loc) · 948 Bytes
/
Filter.h
File metadata and controls
30 lines (27 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
//
//*** 滤波器 ***
//
class CFilter
{
public:
int m_nFilterWidth; //滤波器宽
int m_nFilterLength; //滤波器长
double* m_pFilter; //滤波器内容
BOOL m_bFilterType; //阶数:奇-0,偶-1
public:
CFilter();
CFilter(int FilterWidth);
CFilter(const CFilter &Filter);
~CFilter();
BOOL Create(int FilterWidth);
BOOL Create(CFilter *Filter);
BOOL Create(BYTE* dataSrc, int& ImageWidth, int& ImageHeight, int& ImageChannel, long& ImageRowlen, int curChannel, int curRow, int curCol, int curSize);
BOOL Create(double* Data, int Width);
BOOL Assign(BYTE* dataSrc, int& ImageWidth, int& ImageHeight, int& ImageChannel, long& ImageRowlen, int curChannel, int curRow, int curCol);
double FindMax();
double FindMin();
double FindMed();
double Multiply(CFilter* Filter);
double& Visit(int x, int y);
};