-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmn-coor_map.pd
30 lines (30 loc) · 1.02 KB
/
mn-coor_map.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
#N canvas 855 95 475 358 10;
#X obj 25 20 inlet;
#X obj 76 20 inlet;
#X obj 25 204 outlet;
#X obj 76 204 outlet;
#X obj 25 116 * -8;
#X obj 76 137 + 3;
#X obj 25 137 + 4;
#X obj 76 115 * -6;
#X text 160 24 in this abstraction we map the coordinates;
#X text 161 41 which we receive trough pix_blob to match;
#X text 162 59 the ones of the crosshair.;
#X text 159 89 pix_blob's output has a range from 0 to 1;
#X text 158 106 the rectangle \, where our video is textured on;
#X text 158 121 is 8 units wide and 6 high.;
#X text 157 136 point zero of the GEM's coordinate system is;
#X text 156 151 in the center;
#X text 159 197 (+/-);
#X text 156 177 You might have to change the algebraic signs;
#X text 161 217 the image or not.;
#X text 196 198 depending on wether your webcam mirrors;
#X text 26 275 the multiplication expands the values to the new range
;
#X text 27 292 the addition shifts the point zero to the center.;
#X connect 0 0 4 0;
#X connect 1 0 7 0;
#X connect 4 0 6 0;
#X connect 5 0 3 0;
#X connect 6 0 2 0;
#X connect 7 0 5 0;