aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_contours_convexity-help.pd
blob: b3fc71bf5dffdf0493f38ade446745bc95f42af6 (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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
#N canvas -23 38 1018 740 10;
#X obj 264 18 gemhead;
#X obj 195 378 pix_texture;
#X obj 195 406 square 2;
#X obj 558 -22 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 15;
#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 563 22 pd gemwin;
#X msg 564 0 create;
#X text 560 -20 Create window and render;
#X obj 31 372 pix_texture;
#X obj 31 400 square 2;
#X obj 97 171 translateXYZ -2 0 0;
#X obj 198 228 separator;
#X obj 177 285 cnv 15 255 67 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 342 -62 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 355 132 unpack 0 0 0;
#X floatatom 345 155 5 0 0 3 length - -;
#X floatatom 394 155 5 0 0 3 width - -;
#X floatatom 444 155 5 0 0 3 height - -;
#X obj 399 113 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
#X floatatom 381 78 5 0 10000 1 frame# - -;
#X obj 342 -33 openpanel;
#X msg 342 -13 open \$1;
#X obj 330 96 pix_film;
#X msg 348 30 auto \$1;
#X obj 348 12 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 195 263 translateXYZ 4 0 0;
#X obj 209 114 pix_invert;
#X obj 150 139 pix_threshold;
#X floatatom 256 146 5 0 0 0 - - -;
#X msg 272 195 0.33;
#X obj 310 196 loadbang;
#X msg 359 54 colorspace RGBA;
#X obj 195 328 pix_opencv_contours_convexity;
#X floatatom 286 614 5 0 0 0 - - -;
#X floatatom 321 614 5 0 0 0 - - -;
#X floatatom 351 595 5 0 0 0 - - -;
#X floatatom 385 595 5 0 0 0 - - -;
#X obj 393 375 route 0 1 2 3 4;
#X obj 320 550 unpack 0 0 0 0 0 0;
#X floatatom 415 576 5 0 0 0 - - -;
#X floatatom 449 576 5 0 0 0 - - -;
#X text 495 378 For each convexity defect in our contour;
#X text 359 615 Start point (X -Y);
#X text 423 595 Depth point (X -Y);
#X text 488 577 End point (X -Y);
#X floatatom 298 517 5 0 0 0 - - -;
#X floatatom 333 517 5 0 0 0 - - -;
#X floatatom 363 498 5 0 0 0 - - -;
#X floatatom 397 498 5 0 0 0 - - -;
#X obj 332 453 unpack 0 0 0 0 0 0;
#X floatatom 427 479 5 0 0 0 - - -;
#X floatatom 461 479 5 0 0 0 - - -;
#X text 371 518 Start point (X -Y);
#X text 435 498 Depth point (X -Y);
#X text 500 480 End point (X -Y);
#X floatatom 616 524 5 0 0 0 - - -;
#X floatatom 651 524 5 0 0 0 - - -;
#X floatatom 681 505 5 0 0 0 - - -;
#X floatatom 715 505 5 0 0 0 - - -;
#X obj 650 460 unpack 0 0 0 0 0 0;
#X floatatom 745 486 5 0 0 0 - - -;
#X floatatom 779 486 5 0 0 0 - - -;
#X text 689 525 Start point (X -Y);
#X text 753 505 Depth point (X -Y);
#X text 818 487 End point (X -Y);
#X floatatom 601 621 5 0 0 0 - - -;
#X floatatom 636 621 5 0 0 0 - - -;
#X floatatom 666 602 5 0 0 0 - - -;
#X floatatom 700 602 5 0 0 0 - - -;
#X obj 635 557 unpack 0 0 0 0 0 0;
#X floatatom 730 583 5 0 0 0 - - -;
#X floatatom 764 583 5 0 0 0 - - -;
#X text 674 622 Start point (X -Y);
#X text 738 602 Depth point (X -Y);
#X text 803 584 End point (X -Y);
#X floatatom 301 389 5 0 0 0 - - -;
#X text 297 404 number convexity defects;
#X text 505 194 pix_opencv_contours_convexity :: Finds convexity defects
of the bigest contour of a binary image.;
#X text 504 230 This object considers a contour to be analyzed any
group of white pixels in a black background \, for this reason you
will find useful to use pix_threshold to obtain a correct input for
pix_opencv_contours_boundingrect.;
#X text 505 283 pix_opencv_contours_boundingrect works detecting the
bigest white area in the input image \, sometimes you will need to
use pix_opencv_morphology to transform the contours of the shape to
be analyzed..;
#X connect 0 0 21 0;
#X connect 1 0 2 0;
#X connect 4 0 5 0;
#X connect 5 0 4 0;
#X connect 7 0 8 0;
#X connect 9 0 7 0;
#X connect 9 0 10 0;
#X connect 10 0 24 0;
#X connect 12 0 19 0;
#X connect 13 0 14 0;
#X connect 13 1 15 0;
#X connect 13 2 16 0;
#X connect 17 0 18 0;
#X connect 18 0 21 1;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 21 0 25 0;
#X connect 21 1 13 0;
#X connect 21 2 17 0;
#X connect 22 0 21 0;
#X connect 23 0 22 0;
#X connect 24 0 31 0;
#X connect 25 0 26 0;
#X connect 26 0 9 0;
#X connect 27 0 26 1;
#X connect 28 0 27 0;
#X connect 29 0 28 0;
#X connect 30 0 21 0;
#X connect 31 0 1 0;
#X connect 31 1 74 0;
#X connect 31 2 36 0;
#X connect 36 0 37 0;
#X connect 36 1 48 0;
#X connect 36 2 58 0;
#X connect 36 3 68 0;
#X connect 37 0 32 0;
#X connect 37 1 33 0;
#X connect 37 2 34 0;
#X connect 37 3 35 0;
#X connect 37 4 38 0;
#X connect 37 5 39 0;
#X connect 48 0 44 0;
#X connect 48 1 45 0;
#X connect 48 2 46 0;
#X connect 48 3 47 0;
#X connect 48 4 49 0;
#X connect 48 5 50 0;
#X connect 58 0 54 0;
#X connect 58 1 55 0;
#X connect 58 2 56 0;
#X connect 58 3 57 0;
#X connect 58 4 59 0;
#X connect 58 5 60 0;
#X connect 68 0 64 0;
#X connect 68 1 65 0;
#X connect 68 2 66 0;
#X connect 68 3 67 0;
#X connect 68 4 69 0;
#X connect 68 5 70 0;