aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/examples/motion_detect.pd
diff options
context:
space:
mode:
Diffstat (limited to 'externals/gridflow/examples/motion_detect.pd')
-rw-r--r--externals/gridflow/examples/motion_detect.pd44
1 files changed, 44 insertions, 0 deletions
diff --git a/externals/gridflow/examples/motion_detect.pd b/externals/gridflow/examples/motion_detect.pd
new file mode 100644
index 00000000..c0d00178
--- /dev/null
+++ b/externals/gridflow/examples/motion_detect.pd
@@ -0,0 +1,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;