-
Notifications
You must be signed in to change notification settings - Fork 4
/
06b-panning.pd
120 lines (120 loc) · 3.32 KB
/
06b-panning.pd
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
#N canvas 724 31 610 936 10;
#X declare -lib Gem;
#X obj 28 8 cnv 15 400 50 empty empty 6b 14 24 0 24 -175655 -66577
0;
#X msg 31 130 create \, 1;
#X msg 39 156 0 \, destroy;
#X obj 129 376 pix_texture;
#X obj 129 398 rectangle 4 3;
#X text 346 124 This is a render-chain.;
#X text 348 138 Always start it with gemhead.;
#X text 346 161 takes the video image from your camera;
#X text 17 395 onto an rectangle;
#X obj 129 187 pix_rgba;
#X text 348 190 converts the colorspace;
#X text 31 836 use;
#X text 30 816 Challenge:;
#X obj 58 837 pix_multiblob;
#X obj 129 320 pix_blob 4;
#X obj 31 186 gemwin 12;
#X text 360 297 detects the center of gravity;
#X obj 254 353 > 0.001;
#X msg 139 212 reset;
#X obj 213 231 hsl 100 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 1980 1;
#X text 14 373 textures the image;
#X text 306 347 if the blobsize is to small;
#X text 312 359 don't show the crosshair;
#X text 337 409 computer and camera;
#X text 304 396 you may have to ajust this for your;
#X text 82 29 Using Background substraction;
#X text 28 67 If we compare the current frame to the previous frame
\, we loose the position if the tracked object stops moving.;
#X text 29 94 An aproach to this is to substract the Background;
#X text 359 244 compares the current frame to a;
#X text 360 258 stored one;
#X text 177 211 set reference frame;
#X text 316 229 threshold;
#X obj 128 492 rectangle 0.01 1;
#X obj 128 513 rectangle 1 0.01;
#X text 365 310 of blobs in the alpha channel;
#X text 16 429 the render chain;
#X text 17 441 may be toggled;
#X text 16 454 by 0 or 1 sent;
#X text 18 466 to gemhead;
#X text 145 837 instead;
#X obj 129 297 mn-flip;
#X obj 128 470 translateXYZ 0 0 0.01;
#X obj 129 130 gemhead;
#X obj 128 430 gemhead;
#X obj 215 399 mn-coor_map;
#X obj 240 160 loadbang;
#X msg 240 181 0.2;
#X obj 129 249 pix_background;
#X text 235 512 the crosshair;
#X obj 129 158 pix_video;
#X obj 129 558 noise~;
#X obj 130 756 dac~;
#X obj 203 684 line~;
#X msg 203 659 \$1 20;
#X obj 245 685 line~;
#X msg 245 659 \$1 20;
#X obj 130 726 *~;
#X obj 163 726 *~;
#X obj 129 582 lop~ 500;
#X obj 245 634 abs;
#X obj 246 614 - 1;
#X obj 130 674 *~;
#X obj 145 606 osc~ 0.3;
#X obj 145 629 /~ 3;
#X obj 145 650 +~ 0.5;
#X obj 443 13 declare -lib Gem;
#X obj 148 357 s \$0-x-axis;
#X obj 202 587 r \$0-x-axis;
#X text 31 558 AUDIO;
#X obj 361 564 loadbang;
#X msg 361 586 \; pd dsp 1;
#X text 31 873 Max Neupert \, GMU - Bauhaus-Universität Weimar 2008-2013
;
#X text 82 16 Pure Data + Gem;
#X connect 1 0 15 0;
#X connect 2 0 15 0;
#X connect 3 0 4 0;
#X connect 9 0 47 0;
#X connect 14 0 3 0;
#X connect 14 1 44 0;
#X connect 14 1 66 0;
#X connect 14 2 44 1;
#X connect 14 3 17 0;
#X connect 17 0 43 0;
#X connect 18 0 47 0;
#X connect 19 0 47 1;
#X connect 32 0 33 0;
#X connect 40 0 14 0;
#X connect 41 0 32 0;
#X connect 42 0 49 0;
#X connect 43 0 41 0;
#X connect 44 0 41 1;
#X connect 44 1 41 2;
#X connect 45 0 46 0;
#X connect 46 0 19 0;
#X connect 47 0 40 0;
#X connect 49 0 9 0;
#X connect 50 0 58 0;
#X connect 52 0 56 1;
#X connect 53 0 52 0;
#X connect 54 0 57 1;
#X connect 55 0 54 0;
#X connect 56 0 51 0;
#X connect 57 0 51 1;
#X connect 58 0 61 0;
#X connect 59 0 55 0;
#X connect 60 0 59 0;
#X connect 61 0 57 0;
#X connect 61 0 56 0;
#X connect 62 0 63 0;
#X connect 63 0 64 0;
#X connect 64 0 61 1;
#X connect 67 0 53 0;
#X connect 67 0 60 0;
#X connect 69 0 70 0;