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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 7 17:15:29 EDT 2010


Author: matju
Date: Wed Apr  7 17:15:27 2010
New Revision: 5360

Log:
faster square diff

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 17:15:27 2010
@@ -1,7 +1,7 @@
 #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;
+-173441 -1 9800 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
@@ -36,7 +36,7 @@
 #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;
+-1 0;
 #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
@@ -91,8 +91,8 @@
 #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 obj 345 328 hsl 129 15 4 4096 1 1 empty empty unfuzziness -2 8 0
+8 -260818 -173441 -1 5100 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
@@ -114,7 +114,7 @@
 ;
 #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 text 30 21 Copyright 2001-2004 Mathieu Bouchard;
 #X obj 329 433 #for (0 0) (240 320) (1 1);
 #X obj 389 520 #in violoncelle.mov;
 #X obj 409 64 # rand;
@@ -178,7 +178,50 @@
 #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;
+#N canvas 524 44 554 260 square_diff 0;
+#X obj 30 181 # inv+;
+#X obj 72 181 # sq-;
+#X obj 30 27 inlet;
+#X obj 30 200 outlet;
+#X obj 99 27 inlet;
+#X text 30 10 image;
+#X obj 308 28 inlet;
+#X text 306 10 toggles for enabling channels;
+#X text 351 46 make this 0=disable \, -1=enable;
+#X text 346 26 0=disable \, 1=enable;
+#X text 34 97 & 0 vs & -1 is a very \, very fast way of doing * 0 \,
+* 1;
+#X obj 240 27 inlet;
+#X text 98 10 color to compare to;
+#X text 238 10 tolérance;
+#X obj 147 81 # &;
+#X obj 308 47 # inv+;
+#X obj 30 81 # &;
+#X obj 30 146 #inner (3 #) \, op sq-;
+#X obj 66 57 #store;
+#X obj 30 57 t a b;
+#X text 35 41 in case toggles change...;
+#X connect 0 0 3 0;
+#X connect 1 0 0 1;
+#X connect 2 0 19 0;
+#X connect 4 0 18 1;
+#X connect 6 0 15 0;
+#X connect 11 0 1 0;
+#X connect 14 0 17 1;
+#X connect 15 0 14 1;
+#X connect 15 0 16 1;
+#X connect 16 0 17 0;
+#X connect 17 0 0 0;
+#X connect 18 0 14 0;
+#X connect 19 0 16 0;
+#X connect 19 1 18 0;
+#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;
+#N canvas 0 0 529 239 square_diff_old 0;
 #X obj 30 147 # inv+;
 #X obj 30 128 #fold +;
 #X obj 30 70 # sq-;
@@ -208,12 +251,7 @@
 #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 restore 124 282 pd square_diff_old;
 #X connect 0 0 84 0;
 #X connect 1 0 39 0;
 #X connect 2 0 0 0;



More information about the Gridflow-cvs mailing list