nmpp
iPlessyDetector.h
1#ifndef __PLESSYDETECTOR_H
2#define __PLESSYDETECTOR_H
3
4#include "iplessy.h"
5#include "isubpixel2dimpl.h"
6
7
9{
10protected:
11 I_2DSubPixelMinPosition *SubPixelMinPosition;
12 short *fxi, *fyi;
13 short *Picture16;
14 float *SumSxxSyy, *Subxy;
15 float S9[9];
16 float threshold;
17 unsigned char *cres;
18
19 virtual void CountDer(unsigned char *Picture, int w, int h, int ww);
20 virtual void CountPlessy(int w, int h, int ww) {};
21public:
22
25 virtual void Allocate(int w, int h, int ww);
26 virtual void DeAllocate();
27 virtual void FindCorners(unsigned char *Picture, int w, int h, int ww, float *px, float *py, int& nc);
28 virtual void Release();
29 virtual void SetThreshold(float _threshold)=0;
30};
31
32
33
35{
36protected:
37 float *fx, *fy;
38 float *sxx, *sxy, *syy;
39 float *Sxx, *Sxy, *Syy;
40 float *MulSxxSyy, *MulSxySxy;
41 float *cSubxy;
42 float threshold;
43
44 virtual void CountPlessy(int w, int h, int ww);
45 virtual void CountDer(unsigned char *Picture, int w, int h, int ww);
46public:
49 virtual void Allocate(int w, int h, int ww);
50 virtual void DeAllocate();
51 virtual void SetThreshold(float _threshold);
52};
53
54
55
57{
58protected:
59 short *sxxi, *sxyi, *syyi;
60 short *Sxxi, *Sxyi, *Syyi;
61 short *Sxxit, *Syyit;
62 short *SumSxxSyyi, *MulSxxSyyi, *MulSxySxyi, *Subxyi;
63 short *cSubxyi;
64 short threshold;
65
66 virtual void CountPlessy(int w, int h, int ww);
67
68public:
71 virtual void Allocate(int w, int h, int ww);
72 virtual void DeAllocate();
73 virtual void SetThreshold(float _threshold);
74};
75
76#endif
Definition: iPlessyDetector.h:57
Definition: iPlessyDetector.h:35
Definition: iPlessyDetector.h:9
Definition: isubpixel2d.h:8
Definition: iPlessy.h:11