aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_pgh_compare-help.pd
blob: 6421e774c1638bff8f5f62cef3857cbcf704e254 (plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#N canvas 482 166 1154 642 10;
#X obj 821 9 gemhead;
#X obj 372 500 pix_texture;
#X obj 372 528 square 2;
#X obj 18 26 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 454 304 gemwin 0;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 182 68 set create;
#N canvas 87 154 247 179 Gem.init 0;
#X obj 118 46 loadbang;
#X msg 118 81 reset;
#X obj 118 113 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 289 80 pd Gem.init;
#X obj 160 260 gemwin;
#X msg 159 207 create \, 1;
#X msg 235 208 destroy;
#X msg 281 180 frame 5;
#X obj 162 170 t b b b;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 10 0;
#X connect 2 1 4 0;
#X connect 2 1 8 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
#X connect 9 0 6 0;
#X connect 10 0 7 0;
#X connect 10 2 9 0;
#X restore 24 69 pd gemwin;
#X msg 24 48 create;
#X text 25 30 Create window and render;
#X obj 363 232 cnv 15 700 250 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 485 -90 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 542 85 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
#X floatatom 524 50 5 0 10000 1 frame# - -;
#X obj 485 -61 openpanel;
#X msg 485 -41 open \$1;
#X obj 473 68 pix_film;
#X msg 491 2 auto \$1;
#X obj 491 -16 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X floatatom 506 439 30 0 0 0 - - -;
#X text 511 422 distance;
#X obj 730 457 route 1;
#X obj 782 457 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 783 437 hsl 128 15 0 0.2 0 0 cdist empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X text 696 420 criteria value;
#X floatatom 701 439 10 0 0 0 - - -;
#X msg 478 319 criteria \$1;
#X obj 562 320 r cdist;
#X text 615 314 criteria value under which the contour is recongnized
;
#X msg 463 255 minsize \$1;
#X floatatom 537 256 5 0 0 0 - - -;
#X text 578 256 minimum size of selected contours ( default : 10x10
);
#X msg 480 290 clear;
#X text 588 290 recalculates the pattern contour;
#X obj 529 291 r reset;
#X text 532 -88 playing a video file;
#X text 550 -75 ( try estrella.mov );
#X msg 755 -67 bang;
#X text 801 -74 loading a pattern image;
#X text 800 -61 ( try estrella.jpg );
#X text 754 -92 Compare to a pattern;
#X obj 755 9 pix_image;
#X obj 757 -40 openpanel;
#X obj 755 159 separator;
#X msg 756 -13 open \$1;
#X floatatom 908 126 5 0 0 0 - - -;
#X text 946 125 threshold (default 13) to use when comparing pixel
colors;
#X obj 976 99 loadbang;
#X msg 945 99 160;
#X obj 877 98 r tresh;
#X floatatom 606 154 5 0 0 0 - - -;
#X obj 674 152 loadbang;
#X msg 646 152 160;
#X obj 607 172 s tresh;
#X obj 886 158 pix_texture;
#X obj 754 125 pix_opencv_threshold;
#X obj 473 173 pix_opencv_threshold;
#X obj 886 186 square 2;
#X obj 754 71 translateXYZ -2 0 0;
#X obj 755 39 pix_resize 320 240;
#X obj 755 186 translateXYZ 4 0 0;
#X obj 474 122 pix_resize 320 240;
#X obj 374 395 pix_opencv_pgh_compare;
#X text 17 -80 pix_opencv_pgh_compare :: compare contours calculating
their PGH histograms.;
#X text 17 -53 Written by Yves Degoyon ( ydegoyon@gmail.com ) using
example code from OpenCV book;
#X obj 683 458 < 0.05;
#X text 612 326 ( adjust to your situation : default : 0.05 );
#X obj 548 -27 loadbang;
#X msg 548 -2 colorspace RGBA;
#X msg 652 -2 colorspace RGB;
#X msg 611 -28 colorspace Grey;
#X connect 0 0 38 0;
#X connect 1 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 4 0;
#X connect 8 0 11 0;
#X connect 9 0 10 0;
#X connect 10 0 13 1;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 58 0;
#X connect 13 2 9 0;
#X connect 14 0 13 0;
#X connect 15 0 14 0;
#X connect 16 0 62 0;
#X connect 18 0 19 0;
#X connect 20 0 22 0;
#X connect 20 0 62 1;
#X connect 23 0 59 0;
#X connect 24 0 23 0;
#X connect 26 0 59 0;
#X connect 27 0 26 0;
#X connect 29 0 59 0;
#X connect 31 0 29 0;
#X connect 34 0 39 0;
#X connect 38 0 56 0;
#X connect 39 0 41 0;
#X connect 40 0 57 0;
#X connect 41 0 38 0;
#X connect 42 0 52 2;
#X connect 44 0 45 0;
#X connect 45 0 42 0;
#X connect 46 0 42 0;
#X connect 47 0 50 0;
#X connect 47 0 53 2;
#X connect 48 0 49 0;
#X connect 49 0 47 0;
#X connect 51 0 54 0;
#X connect 52 0 40 0;
#X connect 52 0 51 0;
#X connect 52 0 59 1;
#X connect 53 0 59 0;
#X connect 55 0 52 0;
#X connect 56 0 55 0;
#X connect 57 0 13 0;
#X connect 58 0 53 0;
#X connect 59 0 1 0;
#X connect 59 1 16 0;
#X connect 62 0 18 0;
#X connect 64 0 65 0;
#X connect 65 0 13 0;
#X connect 65 0 38 0;
#X connect 66 0 38 0;
#X connect 66 0 13 0;
#X connect 67 0 13 0;
#X connect 67 0 38 0;