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