| 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 |
|
|---|
| 21 | static float SDev(const byte *buffer, const int offset,
|
|---|
| 22 | const double mean);
|
|---|
| 23 |
|
|---|
| 24 | static int GetMeanPosition(const byte *bitmap,
|
|---|
| 25 | const int x, const int y,
|
|---|
| 26 | const int box);
|
|---|
| 27 |
|
|---|
| 28 | public:
|
|---|
| 29 | static void Execute(byte *img);
|
|---|
| 30 |
|
|---|
| 31 | ClassDef(Filter, 0)
|
|---|
| 32 | };
|
|---|
| 33 |
|
|---|
| 34 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.