source: trunk/Cosy/videodev/Filter2.h@ 18162

Last change on this file since 18162 was 1692, checked in by tbretz, 22 years ago
*** empty log message ***
File size: 918 bytes
Line 
1#ifndef COSY_Filter2
2#define COSY_Filter2
3
4#ifndef __CINT__
5#include <TROOT.h>
6#endif
7
8typedef unsigned char byte;
9
10class MStarList;
11
12class Filter2
13{
14 static void DrawBox(const int x1, const int y1,
15 const int x2, const int y2,
16 byte *buffer, const int col);
17
18 static void MarkPoint(const int x, const int y,
19 byte *buffer, const int col);
20
21 static float Mean(const byte *buffer, const int offset,
22 int *min, int *max);
23
24 static float SDev(const byte *buffer, const int offset,
25 const double mean);
26
27 static int GetMeanPosition(const byte *bitmap,
28 const int x, const int y, const int box,
29 Double_t &mx, Double_t &my);
30
31public:
32 static void Execute(MStarList &list, byte *img);
33
34 ClassDef(Filter2, 0)
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.