aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/examples/motion_detect.pd
blob: c0d001788f5a4a0496164721059361634d70dae7 (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
#N canvas 564 180 494 470 10;
#X obj 32 -33 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1
;
#X obj 37 193 #downscale_by ( 15 20 ) smoothly;
#X obj 37 219 #scale_by ( 32 32 );
#X obj 37 251 #out window;
#X obj 32 42 t a a;
#X obj 37 68 # -;
#X obj 37 91 @! abs;
#X obj 37 114 # * 8;
#X obj 37 140 # - 64;
#X obj 61 291 fps detailed;
#X obj 61 311 print;
#X obj 32 -6 metro 33.3667;
#X obj 32 18 #camera;
#X obj 37 165 #clip;
#X obj -15 353 cnv 15 500 30 empty empty empty 20 12 0 14 -200249 -66577
0;
#X text -7 360 GridFlow 0.8.0;
#X text -7 360 GridFlow 0.8.0;
#X obj -13 -85 cnv 15 500 30 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text -5 -85 motion_detect.pd;
#X text -6 -72 Copyright 2001 Mathieu Bouchard;
#X obj 181 253 display;
#X text 127 79 This patch demonstrates the basis of motion detection.
The substraction of two subsequent frames after [t a a]. It then downscales
and rescales the image \, breaking it down into larger regions that
can be monitored for changes.;
#X connect 0 0 11 0;
#X connect 1 0 2 0;
#X connect 1 0 20 0;
#X connect 2 0 3 0;
#X connect 3 0 9 0;
#X connect 4 0 5 1;
#X connect 4 1 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 8 0 13 0;
#X connect 9 0 10 0;
#X connect 11 0 12 0;
#X connect 12 0 4 0;
#X connect 13 0 1 0;