[Gridflow-cvs] [svn] commit: r5353 - /trunk/examples/color_detect.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 7 15:46:13 EDT 2010


Author: matju
Date: Wed Apr  7 15:46:11 2010
New Revision: 5353

Log:
a bit more reorganisation

Modified:
    trunk/examples/color_detect.pd

Modified: trunk/examples/color_detect.pd
==============================================================================
--- trunk/examples/color_detect.pd (original)
+++ trunk/examples/color_detect.pd Wed Apr  7 15:46:11 2010
@@ -1,55 +1,49 @@
-#N canvas 622 0 625 694 10;
-#X obj 14 372 # > 0;
-#X obj 56 396 # + 128;
-#X obj 313 233 hsl 222 15 0 442 0 0 empty empty tolerance 8 8 0 8 -260818
--1 -1 9500 1;
-#X obj 56 377 # tanh* 127;
-#X obj 59 104 #store;
-#X obj 247 289 tgl 15 1 empty empty empty 0 -6 0 8 -261689 -258699
+#N canvas 601 0 625 694 10;
+#X obj 52 399 # + 128;
+#X obj 322 193 hsl 222 15 0 442 0 0 empty empty tolerance 0 8 0 8 -260818
+-1 -1 5600 1;
+#X obj 52 380 # tanh* 127;
+#X obj 58 123 #store;
+#X obj 285 234 tgl 15 1 empty empty empty 0 -6 0 8 -261689 -258699
 -1 1 1;
 #X obj 10 32 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 1 1;
-#X obj 14 289 # inv+;
-#X obj 14 394 # << 8;
-#X obj 14 270 #fold +;
-#X obj 312 450 loadbang;
-#X obj 295 488 #checkers;
-#X obj 221 558 # +;
-#X obj 221 535 # *;
-#X obj 294 556 # *;
-#X obj 221 579 # >> 8;
-#X obj 294 514 # inv+ 256;
-#X obj 268 580 # min 255;
-#X obj 295 452 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+#X obj 10 397 # << 8;
+#X obj 346 414 loadbang;
+#X obj 329 452 #checkers;
+#X obj 221 568 # +;
+#X obj 221 549 # *;
+#X obj 314 551 # *;
+#X obj 221 587 # >> 8;
+#X obj 314 509 # inv+ 256;
+#X obj 248 466 # min 255;
+#X obj 329 416 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
 -1;
-#X obj 310 176 #color;
-#X obj 52 163 s image;
-#X obj 237 516 r image;
-#X text 304 146 select a point in the color cube \; and a radius of
+#X text 313 106 select a point in the color cube \; and a radius of
 accepted similarity.;
-#X obj 247 306 #pack 3;
-#X obj 266 289 tgl 15 1 empty empty empty 0 -6 0 8 -225271 -24198 -1
+#X obj 285 251 #pack 3;
+#X obj 304 234 tgl 15 1 empty empty empty 0 -6 0 8 -225271 -24198 -1
 1 1;
-#X obj 286 289 tgl 15 1 empty empty empty 0 -6 0 8 -228992 -62784 -1
+#X obj 324 234 tgl 15 1 empty empty empty 0 -6 0 8 -228992 -62784 -1
 1 1;
-#X text 241 271 enable selection on:;
-#X text 314 287 all three = select sphere in color cube \; pick two
+#X text 161 232 enable selection on:;
+#X text 340 228 all three = select sphere in color cube \; pick two
 = select circle in a color square \; pick one = select range in one
 channel;
-#X text 374 450 make background;
-#X obj 41 327 # inv+;
-#X obj 247 327 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -66577
+#X text 408 414 make background;
+#X obj 37 326 # inv+;
+#X obj 285 277 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -66577
 -1 0;
-#X text 266 326 erase nonselected;
-#X text 266 343 erase selected;
-#X obj 247 361 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -66577
+#X text 302 274 erase nonselected;
+#X text 302 291 erase selected;
+#X obj 285 329 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -66577
 -1 1;
-#X text 269 360 strict;
-#X text 268 376 fuzzy;
-#X obj 248 413 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -66577
+#X text 302 326 strict;
+#X text 301 342 fuzzy;
+#X obj 248 383 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -66577
 -1 0;
-#X text 270 412 see filtered image on checkers;
-#X text 270 427 see opacity mask;
-#X obj 221 496 t a a;
+#X text 270 382 see filtered image on checkers;
+#X text 270 397 see opacity mask;
+#X obj 211 492 t a a;
 #N canvas 414 469 450 216 color 0;
 #X obj 26 5 inlet bang;
 #X obj 26 177 outlet image;
@@ -89,195 +83,227 @@
 #X connect 15 0 16 0;
 #X connect 16 0 17 0;
 #X connect 17 0 7 1;
-#X restore 188 107 pd color panorama;
-#X obj 188 88 loadbang;
-#X obj 190 47 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -66577
+#X restore 100 123 pd color panorama;
+#X obj 100 104 loadbang;
+#X obj 107 69 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -66577
 -1 1;
-#X text 209 46 on video;
-#X text 209 62 on color panorama;
-#X floatatom 310 250 5 0 0 0 - - -;
-#X obj 56 358 # *>>8 256;
-#X obj 290 394 hsl 129 15 4 4096 1 1 empty empty empty -2 -6 0 8 -260818
--1 -1 8700 1;
-#X floatatom 247 394 5 0 0 0 - - -;
-#X obj 50 214 #rgb_to_yuv;
-#X obj 59 182 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -1
+#X text 126 68 on video;
+#X text 126 84 on color panorama;
+#X floatatom 319 210 5 0 0 0 - - -;
+#X obj 52 361 # *>>8 256;
+#X obj 345 328 hsl 129 15 4 4096 1 1 empty empty fuzziness -2 8 0 8
+-260818 -1 -1 4900 1;
+#X floatatom 342 345 5 0 0 0 - - -;
+#X obj 37 233 #rgb_to_yuv;
+#X obj 58 201 vradio 15 1 0 2 empty empty empty 0 -6 0 8 -241291 -1
 -1 0;
-#X text 76 182 RGB;
-#X text 76 197 YUV;
-#X text 141 165 warning: in YUV mode \,;
-#X text 142 191 green slider = U chroma;
-#X text 148 204 blue slider = V chroma;
-#X text 154 178 red slider = Y luma;
+#X text 75 201 RGB;
+#X text 75 216 YUV;
+#X text 175 136 warning: in YUV mode \,;
+#X text 176 162 green slider = U chroma;
+#X text 182 175 blue slider = V chroma;
+#X text 188 149 red slider = Y luma;
 #X obj 10 49 metro 33.3667;
-#X obj 11 106 #camera;
-#X obj 318 556 spigot;
-#X obj 360 557 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0
+#X obj 10 125 #camera;
+#X obj 340 551 spigot;
+#X obj 382 552 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0
 1;
-#X text 379 558 recurrent layering;
-#X obj 221 601 t a;
-#X obj 38 251 # inv+;
-#X obj 41 494 # >> 6;
-#X obj 51 417 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
-;
-#X text 67 409 sort-of feather;
-#X text 66 420 (8x8 square blur on mask);
-#X obj 41 475 # + 32;
+#X text 401 553 recurrent layering;
+#X obj 248 614 t a;
+#X obj 47 425 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
+;
+#X text 63 417 sort-of feather;
+#X text 62 428 (8x8 square blur on mask);
 #X text 34 25 Copyright 2001-2004 Mathieu Bouchard;
-#X obj 14 232 # sq-;
-#X obj 56 289 # sq-;
-#X obj 41 437 #convolve (8 1 # 1);
-#X obj 41 456 #convolve (1 8 # 1);
-#X obj 295 469 #for (0 0) (240 320) (1 1);
-#X obj 365 530 #in violoncelle.mov;
-#X obj 400 104 # rand;
-#X msg 400 85 3 # 256;
-#X obj 221 639 fps;
-#X floatatom 221 658 5 0 0 0 - - -;
-#X obj 310 104 #store (0 0 0);
-#X obj 310 123 #fade 16;
-#X obj 11 68 t b b;
-#X obj 352 86 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
-;
-#X obj 407 512 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0
+#X obj 329 433 #for (0 0) (240 320) (1 1);
+#X obj 389 520 #in violoncelle.mov;
+#X obj 409 64 # rand;
+#X msg 409 45 3 # 256;
+#X obj 161 650 fps;
+#X floatatom 161 669 5 0 0 0 - - -;
+#X obj 319 64 #store (0 0 0);
+#X obj 319 83 #fade 16;
+#X obj 10 68 t b b;
+#X obj 361 46 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
+;
+#X obj 432 502 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0
 1;
-#X obj 365 511 spigot;
-#X obj 310 85 spigot;
-#X obj 11 87 shunt;
-#X obj 127 87 s \$0-bang;
-#X obj 365 492 r \$0-bang;
-#X obj 11 163 t a a;
-#X obj 14 251 # &;
-#X obj 11 125 shunt;
-#X obj 38 144 #rgba_to_rgb;
-#X obj 47 127 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
-;
-#X text 65 125 OSX (from RGBA);
-#X obj 14 308 shunt;
-#X obj 14 351 shunt;
-#X obj 14 416 shunt;
-#X obj 14 632 #window;
-#X obj 62 633 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
-;
-#X obj 14 587 #outer ignore (3 #);
-#X obj 380 129 r \$0-color;
-#X obj 380 600 #store;
-#X obj 380 619 s \$0-color;
-#X obj 269 642 #mouse \, \, \, \, \,;
-#X obj 268 662 t a;
-#X obj 221 475 shunt;
-#X obj 11 182 shunt;
-#X text 23 570 greyscale (Y X) pas de canaux;
-#X text 19 602 RGB (en tons de gris);
-#X text 19 614 valeurs répétées;
-#X obj 14 528 shunt;
-#X obj 50 529 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
-;
-#X obj 41 547 # max 8;
-#X text 84 494 division par 64;
-#X text 67 522 minimum opacity;
-#X text 66 533 for the alpha;
-#X obj 221 620 #out window \, setcursor 30;
+#X obj 389 501 spigot;
+#X obj 319 45 spigot;
+#X obj 10 106 shunt;
+#X obj 46 68 s \$0-bang;
+#X obj 389 482 r \$0-bang;
+#X obj 10 182 t a a;
+#X obj 10 144 shunt;
+#X obj 37 163 #rgba_to_rgb;
+#X obj 46 146 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
+;
+#X text 64 144 OSX (from RGBA);
+#X obj 10 307 shunt;
+#X obj 10 359 shunt;
+#X obj 10 424 shunt;
+#X obj 10 558 #window;
+#X obj 58 559 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
+;
+#X obj 10 513 #outer ignore (3 #);
+#X obj 389 89 r \$0-color;
+#X obj 415 641 #store;
+#X obj 415 660 s \$0-color;
+#X obj 221 447 shunt;
+#X obj 10 201 shunt;
+#X text 19 496 greyscale (Y X) pas de canaux;
+#X text 15 528 RGB (en tons de gris);
+#X text 15 540 valeurs répétées;
+#X obj 10 462 shunt;
+#X obj 46 463 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0 1
+;
+#X obj 37 481 # max 8;
+#X text 63 456 minimum opacity;
+#X text 62 467 for the alpha;
+#X obj 248 633 #out window \, setcursor 30;
 #X obj 0 0 doc_demo;
-#X connect 0 0 8 0;
-#X connect 1 0 98 0;
-#X connect 2 0 45 0;
-#X connect 3 0 1 0;
-#X connect 4 0 90 0;
-#X connect 5 0 23 0;
-#X connect 6 0 57 0;
-#X connect 7 0 96 0;
-#X connect 8 0 98 0;
-#X connect 9 0 7 0;
-#X connect 10 0 18 0;
-#X connect 11 0 14 1;
-#X connect 12 0 15 0;
-#X connect 13 0 12 0;
-#X connect 14 0 12 1;
-#X connect 15 0 62 0;
-#X connect 16 0 14 0;
-#X connect 17 0 62 0;
-#X connect 18 0 74 0;
-#X connect 19 0 70 1;
-#X connect 21 0 13 1;
-#X connect 21 0 103 1;
-#X connect 23 0 63 0;
-#X connect 24 0 23 1;
-#X connect 25 0 23 2;
-#X connect 29 0 97 0;
-#X connect 30 0 96 1;
-#X connect 33 0 97 1;
-#X connect 36 0 107 1;
-#X connect 39 0 13 0;
-#X connect 39 1 16 0;
-#X connect 40 0 4 1;
-#X connect 41 0 40 0;
-#X connect 42 0 87 1;
-#X connect 45 0 71 0;
-#X connect 46 0 3 0;
-#X connect 47 0 48 0;
-#X connect 48 0 46 1;
-#X connect 49 0 70 0;
-#X connect 50 0 108 1;
-#X connect 57 0 82 0;
-#X connect 58 0 92 0;
-#X connect 59 0 14 1;
-#X connect 60 0 59 1;
-#X connect 62 0 59 0;
-#X connect 62 0 118 0;
-#X connect 63 0 91 1;
-#X connect 64 0 112 0;
-#X connect 65 0 98 1;
-#X connect 68 0 64 0;
-#X connect 70 0 91 0;
-#X connect 71 0 7 1;
-#X connect 72 0 73 0;
-#X connect 73 0 68 0;
-#X connect 74 0 11 0;
-#X connect 75 0 14 1;
-#X connect 76 0 80 1;
-#X connect 77 0 76 0;
-#X connect 78 0 79 0;
-#X connect 80 0 81 0;
-#X connect 81 0 19 0;
-#X connect 82 0 87 0;
-#X connect 82 1 86 0;
-#X connect 82 1 88 0;
-#X connect 83 0 86 1;
-#X connect 84 0 85 1;
-#X connect 85 0 75 0;
-#X connect 86 0 80 0;
-#X connect 87 0 58 0;
-#X connect 87 1 4 0;
-#X connect 89 0 85 0;
-#X connect 90 0 108 0;
-#X connect 90 1 20 0;
-#X connect 91 0 9 0;
-#X connect 92 0 90 0;
-#X connect 92 1 93 0;
-#X connect 93 0 90 0;
-#X connect 94 0 92 1;
-#X connect 96 0 97 0;
-#X connect 96 1 29 0;
-#X connect 97 0 0 0;
-#X connect 97 1 46 0;
-#X connect 98 0 112 0;
-#X connect 98 1 72 0;
-#X connect 100 0 99 1;
-#X connect 101 0 99 0;
-#X connect 101 0 107 0;
-#X connect 102 0 19 0;
-#X connect 103 0 104 0;
-#X connect 105 0 106 0;
-#X connect 105 1 106 0;
-#X connect 106 0 103 0;
-#X connect 107 0 39 0;
-#X connect 107 1 17 0;
-#X connect 108 0 70 0;
-#X connect 108 1 49 0;
-#X connect 112 0 101 0;
-#X connect 112 1 114 0;
-#X connect 113 0 112 1;
-#X connect 114 0 101 0;
-#X connect 118 0 78 0;
-#X connect 118 0 105 0;
+#N canvas 0 0 450 300 sort_of_feather 0;
+#X obj 24 22 inlet;
+#X obj 24 134 # >> 6;
+#X obj 24 115 # + 32;
+#X obj 24 77 #convolve (8 1 # 1);
+#X obj 24 96 #convolve (1 8 # 1);
+#X text 67 134 division par 64;
+#X obj 24 216 outlet;
+#X connect 0 0 3 0;
+#X connect 1 0 6 0;
+#X connect 2 0 1 0;
+#X connect 3 0 4 0;
+#X connect 4 0 2 0;
+#X restore 37 443 pd sort_of_feather;
+#X obj 415 620 #mouse \, \, \,;
+#X obj 319 136 #color;
+#N canvas 0 0 529 239 square_diff 0;
+#X obj 30 147 # inv+;
+#X obj 30 128 #fold +;
+#X obj 30 70 # sq-;
+#X obj 72 147 # sq-;
+#X obj 30 89 # &;
+#X obj 30 27 inlet;
+#X obj 30 200 outlet;
+#X obj 66 27 inlet;
+#X text 30 10 image;
+#X obj 258 28 inlet;
+#X text 256 10 toggles for enabling channels;
+#X text 95 89 make this 0=disable \, -1=enable;
+#X text 296 26 0=disable \, 1=enable;
+#X text 37 104 & 0 vs & -1 is a very \, very fast way of doing * 0
+\, * 1;
+#X obj 190 27 inlet;
+#X text 65 10 color to compare to;
+#X text 188 10 tolérance;
+#X obj 54 89 # inv+;
+#X connect 0 0 6 0;
+#X connect 1 0 0 0;
+#X connect 2 0 4 0;
+#X connect 3 0 0 1;
+#X connect 4 0 1 0;
+#X connect 5 0 2 0;
+#X connect 7 0 2 1;
+#X connect 9 0 17 0;
+#X connect 14 0 3 0;
+#X connect 17 0 4 1;
+#X restore 10 277 pd square_diff;
+#X obj 319 26 r \$0-bang;
+#X obj 10 378 # >;
+#X obj 457 641 r \$0-image;
+#X obj 236 521 r \$0-image;
+#X obj 51 182 s \$0-image;
+#X connect 0 0 84 0;
+#X connect 1 0 39 0;
+#X connect 2 0 0 0;
+#X connect 3 0 77 0;
+#X connect 4 0 17 0;
+#X connect 5 0 51 0;
+#X connect 6 0 84 0;
+#X connect 7 0 15 0;
+#X connect 8 0 11 1;
+#X connect 9 0 12 0;
+#X connect 10 0 9 0;
+#X connect 11 0 9 1;
+#X connect 12 0 56 0;
+#X connect 13 0 11 0;
+#X connect 14 0 56 0;
+#X connect 15 0 61 0;
+#X connect 17 0 106 3;
+#X connect 18 0 17 1;
+#X connect 19 0 17 2;
+#X connect 23 0 83 0;
+#X connect 24 0 82 1;
+#X connect 27 0 83 1;
+#X connect 30 0 91 1;
+#X connect 33 0 10 0;
+#X connect 33 1 13 0;
+#X connect 34 0 3 1;
+#X connect 35 0 34 0;
+#X connect 36 0 74 1;
+#X connect 39 0 106 2;
+#X connect 40 0 2 0;
+#X connect 41 0 42 0;
+#X connect 42 0 40 1;
+#X connect 43 0 106 0;
+#X connect 44 0 92 1;
+#X connect 51 0 69 0;
+#X connect 52 0 78 0;
+#X connect 53 0 11 1;
+#X connect 54 0 53 1;
+#X connect 56 0 53 0;
+#X connect 56 0 101 0;
+#X connect 57 0 84 1;
+#X connect 61 0 8 0;
+#X connect 62 0 11 1;
+#X connect 63 0 67 1;
+#X connect 64 0 63 0;
+#X connect 65 0 66 0;
+#X connect 67 0 68 0;
+#X connect 68 0 105 0;
+#X connect 69 0 74 0;
+#X connect 69 1 75 0;
+#X connect 70 0 73 1;
+#X connect 71 0 72 1;
+#X connect 72 0 62 0;
+#X connect 73 0 67 0;
+#X connect 74 0 52 0;
+#X connect 74 1 3 0;
+#X connect 76 0 72 0;
+#X connect 77 0 92 0;
+#X connect 77 1 111 0;
+#X connect 78 0 77 0;
+#X connect 78 1 79 0;
+#X connect 79 0 77 0;
+#X connect 80 0 78 1;
+#X connect 82 0 83 0;
+#X connect 82 1 23 0;
+#X connect 83 0 108 0;
+#X connect 83 1 40 0;
+#X connect 84 0 96 0;
+#X connect 84 1 103 0;
+#X connect 86 0 85 1;
+#X connect 87 0 85 0;
+#X connect 87 0 91 0;
+#X connect 88 0 105 0;
+#X connect 89 0 90 0;
+#X connect 91 0 33 0;
+#X connect 91 1 14 0;
+#X connect 92 0 106 0;
+#X connect 92 1 43 0;
+#X connect 96 0 87 0;
+#X connect 96 1 98 0;
+#X connect 97 0 96 1;
+#X connect 98 0 87 0;
+#X connect 101 0 65 0;
+#X connect 101 0 104 0;
+#X connect 103 0 96 1;
+#X connect 104 0 89 0;
+#X connect 104 1 89 0;
+#X connect 105 0 106 1;
+#X connect 106 0 82 0;
+#X connect 107 0 73 0;
+#X connect 108 0 6 0;
+#X connect 109 0 89 1;
+#X connect 110 0 10 1;



More information about the Gridflow-cvs mailing list