forked from izemskov/OpenCVDelphi2_1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcvtypes.pas
executable file
·80 lines (65 loc) · 1.95 KB
/
cvtypes.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
unit cvtypes;
interface
uses
cxtypes;
const
CV_GAUSSIAN_5x5 = 7;
CV_HAAR_FEATURE_MAX = 3;
type
{ spatial and central moments }
TCvMoments = record
m00, m10, m01, m20, m11, m02, m30, m21, m12, m03: Double; { spatial moments }
mu20, mu11, mu02, mu30, mu21, mu12, mu03: Double; { central moments }
inv_sqrt_m00: Double; { m00 != 0 ? 1/sqrt(m00) : 0 }
end;
PCvMoments = ^TCvMoments;
{ Hu invariants }
TCvHuMoments = record
hu1, hu2, hu3, hu4, hu5, hu6, hu7: Double; { Hu invariants }
end;
PCvHuMoments = ^TCvHuMoments;
TCvHaarFeatureTmpRect = record
r: TCvRect;
weight: Single;
end;
PCvHaarFeatureTmpRect = ^TCvHaarFeatureTmpRect;
TCvHaarFeature = record
tilted: Integer;
rect: array [0..CV_HAAR_FEATURE_MAX - 1] of PCvHaarFeatureTmpRect;
end;
PCvHaarFeature = ^TCvHaarFeature;
TCvHaarClassifier = record
count: Integer;
haar_feature: PCvHaarFeature;
threshold: PSingle;
left: PInteger;
right: PInteger;
alpha: PSingle;
end;
PCvHaarClassifier = ^TCvHaarClassifier;
TCvHaarStageClassifier = record
count: Integer;
threshold: Single;
classifier: PCvHaarClassifier;
next: Integer;
child: Integer;
parent: Integer;
end;
PCvHaarStageClassifier = ^TCvHaarStageClassifier;
TCvHidHaarClassifierCascade = record
end;
PCvHidHaarClassifierCascade = ^TCvHidHaarClassifierCascade;
PCvHaarClassifierCascade = ^TCvHaarClassifierCascade;
PPCvHaarClassifierCascade = ^PCvHaarClassifierCascade;
TCvHaarClassifierCascade = record
flags: Integer;
count: Integer;
orig_window_size: TCvSize;
real_window_size: TCvSize;
scale: Double;
stage_classifier: PCvHaarStageClassifier;
hid_cascade: PCvHidHaarClassifierCascade;
end;
TCvDistanceFunction = function (const a: PSingle; const b: PSingle; user_param: Pointer): Single; cdecl;
implementation
end.