Line | |
---|
1 | #ifndef FILTER_H
|
---|
2 | #define FILTER_H
|
---|
3 |
|
---|
4 | typedef unsigned char byte;
|
---|
5 |
|
---|
6 | class Filter
|
---|
7 | {
|
---|
8 | static void DrawBox(const int x1, const int y1,
|
---|
9 | const int x2, const int y2,
|
---|
10 | byte *buffer, const int col);
|
---|
11 |
|
---|
12 | static void MarkPoint(const int x, const int y,
|
---|
13 | byte *buffer, const int col);
|
---|
14 |
|
---|
15 | static float Mean(const byte *buffer, const int offset,
|
---|
16 | int *min, int *max);
|
---|
17 |
|
---|
18 | static float SDev(const byte *buffer, const int offset,
|
---|
19 | const double mean);
|
---|
20 |
|
---|
21 | static int GetMeanPosition(const byte *bitmap,
|
---|
22 | const int x, const int y,
|
---|
23 | const int box);
|
---|
24 |
|
---|
25 | public:
|
---|
26 | static void Execute(byte *img);
|
---|
27 | };
|
---|
28 |
|
---|
29 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.