blob: a1aa5e861fa32c5393feef81d7915bde79ca0f9a (
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
|
#N canvas 588 102 1018 740 10;
#X obj 588 591 cnv 15 255 67 empty empty empty 20 12 0 14 -24198 -66577
0;
#X floatatom 841 790 5 0 0 0 - - -;
#X floatatom 876 790 5 0 0 0 - - -;
#X floatatom 906 771 5 0 0 0 - - -;
#X floatatom 940 771 5 0 0 0 - - -;
#X obj 868 710 unpack 0 0 0 0 0 0;
#X floatatom 970 752 5 0 0 0 - - -;
#X floatatom 1004 752 5 0 0 0 - - -;
#X text 36 159 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 obj 606 634 pix_opencv_contours_convexhull;
#X text 1043 753 etc ...;
#X text 978 771 Second vertex point (X -Y);
#X text 916 790 First vertex point (X -Y);
#X text 37 212 pix_opencv_contours_convexhull 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 text 37 123 pix_opencv_contours_convexhull :: Finds convexhull of
the bigest contour of a binary image.;
#X floatatom 694 685 5 0 0 0 - - -;
#X obj 725 54 gemhead;
#X obj 606 852 pix_texture;
#X obj 606 871 square 2;
#X obj 43 50 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 65 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 162 241 gemwin;
#X msg 161 188 create \, 1;
#X msg 237 189 destroy;
#X msg 283 161 frame 25;
#X obj 164 126 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 53 94 pd gemwin;
#X msg 53 76 create;
#X obj 454 848 pix_texture;
#X obj 454 876 square 2;
#X obj 606 381 separator;
#X obj 737 81 bng 25 250 50 0 load empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 794 256 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
#X floatatom 776 221 5 0 10000 1 frame# - -;
#X obj 737 110 openpanel;
#X msg 737 130 open \$1;
#X obj 725 239 pix_film;
#X msg 743 173 auto \$1;
#X obj 743 155 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X text 51 56 Create window and render;
#X msg 838 156 colorspace RGBA;
#X msg 943 156 colorspace RGB;
#X msg 1047 156 colorspace Grey;
#X obj 838 128 loadbang;
#X obj 605 352 pix_separator;
#X obj 454 384 separator;
#X obj 454 355 pix_separator;
#X obj 454 419 translateXYZ -2 0 0;
#X obj 606 416 translateXYZ 2 0 0;
#N canvas 0 22 450 300 vswitch 0;
#X obj 144 263 outlet;
#X obj 36 26 inlet;
#X obj 260 29 inlet;
#X obj 36 133 spigot;
#X obj 260 141 spigot;
#X obj 119 64 loadbang;
#X msg 83 93 0;
#X msg 113 93 1;
#X msg 296 104 0;
#X msg 326 104 1;
#X obj 399 34 inlet;
#X obj 399 67 select 0;
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 0 0;
#X connect 4 0 0 0;
#X connect 5 0 7 0;
#X connect 5 0 8 0;
#X connect 6 0 3 1;
#X connect 7 0 3 1;
#X connect 8 0 4 1;
#X connect 9 0 4 1;
#X connect 10 0 11 0;
#X connect 11 0 7 0;
#X connect 11 0 8 0;
#X connect 11 1 9 0;
#X connect 11 1 6 0;
#X restore 547 309 pd vswitch;
#X obj 615 309 tgl 15 0 empty load empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 488 237 pix_video;
#X obj 488 49 gemhead;
#X msg 527 162 device 0;
#X msg 536 193 driver 1;
#X msg 513 108 dialog;
#X msg 518 138 device /dev/dv1394-0;
#X obj 606 481 pix_opencv_bgsubstract;
#X obj 606 449 pix_resize 320 240;
#X text 728 684 number of vertex of the convexhull;
#X floatatom 753 480 5 0 0 0 - - -;
#X obj 543 334 pix_rgba;
#X msg 756 453 set;
#X text 785 453 <- Set the background reference;
#X connect 5 0 1 0;
#X connect 5 1 2 0;
#X connect 5 2 3 0;
#X connect 5 3 4 0;
#X connect 5 4 6 0;
#X connect 5 5 7 0;
#X connect 9 0 17 0;
#X connect 9 1 15 0;
#X connect 9 2 5 0;
#X connect 16 0 30 0;
#X connect 17 0 18 0;
#X connect 20 0 21 0;
#X connect 21 0 20 0;
#X connect 22 0 23 0;
#X connect 24 0 42 0;
#X connect 25 0 28 0;
#X connect 26 0 27 0;
#X connect 27 0 30 1;
#X connect 28 0 29 0;
#X connect 29 0 30 0;
#X connect 30 0 43 1;
#X connect 30 2 26 0;
#X connect 31 0 30 0;
#X connect 32 0 31 0;
#X connect 34 0 30 0;
#X connect 34 0 45 0;
#X connect 35 0 30 0;
#X connect 36 0 30 0;
#X connect 37 0 34 0;
#X connect 37 0 32 0;
#X connect 38 0 24 0;
#X connect 39 0 41 0;
#X connect 40 0 39 0;
#X connect 41 0 22 0;
#X connect 42 0 52 0;
#X connect 43 0 55 0;
#X connect 44 0 43 2;
#X connect 45 0 43 0;
#X connect 46 0 45 0;
#X connect 47 0 45 0;
#X connect 48 0 45 0;
#X connect 49 0 45 0;
#X connect 50 0 45 0;
#X connect 51 0 9 0;
#X connect 52 0 51 0;
#X connect 54 0 51 1;
#X connect 55 0 40 0;
#X connect 55 0 38 0;
#X connect 56 0 51 0;
|