aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/examples/image_stats.pd
diff options
context:
space:
mode:
Diffstat (limited to 'externals/gridflow/examples/image_stats.pd')
-rw-r--r--externals/gridflow/examples/image_stats.pd62
1 files changed, 62 insertions, 0 deletions
diff --git a/externals/gridflow/examples/image_stats.pd b/externals/gridflow/examples/image_stats.pd
new file mode 100644
index 00000000..b53220fd
--- /dev/null
+++ b/externals/gridflow/examples/image_stats.pd
@@ -0,0 +1,62 @@
+#N canvas 308 151 716 426 10;
+#X obj 214 261 print total_value;
+#X obj 473 191 #dim;
+#X obj 42 220 #export_list;
+#X obj 278 231 print number_of_values;
+#X obj 473 229 print number_of_dimensions;
+#X obj 473 210 #export;
+#X obj 205 181 #fold +;
+#X obj 205 301 /;
+#X obj 205 219 #fold +;
+#X obj 42 239 print total_pixel;
+#X obj 205 147 t a a;
+#X obj 265 118 #in;
+#X obj 420 166 print dimensions;
+#X obj 205 320 print average_value;
+#X obj 205 238 #export;
+#X obj 205 200 #fold +;
+#X obj 420 147 #export_list;
+#X obj 420 128 #dim;
+#X obj 278 174 #dim;
+#X obj 278 212 #export;
+#X msg 291 55 open bluemarble.jpg \, bang;
+#X msg 291 75 open teapot.png \, bang;
+#X msg 291 95 open r001.jpg \, bang;
+#X obj 5 394 cnv 15 720 30 empty empty empty 20 12 0 14 -200249 -66577
+0;
+#X text 13 401 GridFlow 0.8.0;
+#X text 13 401 GridFlow 0.8.0;
+#X obj 7 5 cnv 15 720 30 empty empty empty 20 12 0 14 -233017 -66577
+0;
+#X text 15 18 Copyright 2001 Mathieu Bouchard;
+#X text 15 4 image_stats.pd;
+#X obj 42 201 #fold + \, seed (3 #);
+#X obj 42 182 #fold + \, seed (3 #);
+#X text 480 54 <-- click on one of these;
+#X obj 278 193 #fold *;
+#X connect 1 0 5 0;
+#X connect 2 0 9 0;
+#X connect 5 0 4 0;
+#X connect 6 0 15 0;
+#X connect 7 0 13 0;
+#X connect 8 0 14 0;
+#X connect 10 0 6 0;
+#X connect 10 0 30 0;
+#X connect 10 1 18 0;
+#X connect 11 0 10 0;
+#X connect 11 0 17 0;
+#X connect 14 0 0 0;
+#X connect 14 0 7 0;
+#X connect 15 0 8 0;
+#X connect 16 0 12 0;
+#X connect 17 0 16 0;
+#X connect 17 0 1 0;
+#X connect 18 0 32 0;
+#X connect 19 0 3 0;
+#X connect 19 0 7 1;
+#X connect 20 0 11 0;
+#X connect 21 0 11 0;
+#X connect 22 0 11 0;
+#X connect 29 0 2 0;
+#X connect 30 0 29 0;
+#X connect 32 0 19 0;