-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFilter.h
More file actions
51 lines (40 loc) · 705 Bytes
/
Filter.h
File metadata and controls
51 lines (40 loc) · 705 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//-*-c++-*-
#ifndef _Filter_h_
#define _Filter_h_
using namespace std;
class Filter {
int divisor;
int dim;
int *data;
public:
Filter(int _dim);
int get(int r, int c);
void set(int r, int c, int value);
int getDivisor();
void setDivisor(int value);
int getSize();
void info();
};
inline int Filter::get(int r, int c)
{
return data[ r * dim + c ];
}
inline void Filter::set(int r, int c, int value)
{
data[ r * dim + c ] = value;
}
inline int Filter::getSize()
{
return dim;
}
inline int Filter::getDivisor()
{
return divisor;
}
inline void Filter::setDivisor(int value)
{
divisor = value;
}
#endif
/* Code Motion
void set_row(double *a, double *b, long i long n */