[Gridflow-cvs] [svn] commit: r6641 - in /trunk/doc/flow_classes: #apply_colormap_channelwise-help.pd #checkers-help.pd #cluster_avg-help.pd #draw_polygon-help.pd

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Sun Feb 20 15:33:26 EST 2011


Author: matju
Date: Sun Feb 20 15:33:24 2011
New Revision: 6641

Log:
...

Modified:
    trunk/doc/flow_classes/#apply_colormap_channelwise-help.pd
    trunk/doc/flow_classes/#checkers-help.pd
    trunk/doc/flow_classes/#cluster_avg-help.pd
    trunk/doc/flow_classes/#draw_polygon-help.pd

Modified: trunk/doc/flow_classes/#apply_colormap_channelwise-help.pd
==============================================================================
--- trunk/doc/flow_classes/#apply_colormap_channelwise-help.pd (original)
+++ trunk/doc/flow_classes/#apply_colormap_channelwise-help.pd Sun Feb 20 15:33:24 2011
@@ -1,18 +1,17 @@
-#N canvas 651 0 632 598 10;
+#N canvas 651 0 632 642 10;
 #X obj 25 293 #in;
-#X obj 25 342 #out window;
-#X text 232 537 Outputs the modified data as a grid.;
+#X obj 25 341 #out window;
 #X text 12 27 This object is useful for color correction. for each
 pixel it takes it apart \, looks up each part separately in the colormap
 and constructs a new pixel from that.;
-#X obj 213 235 #for 0 256;
+#X obj 213 265 #for 0 256;
 #X obj 213 305 #outer gamma;
 #X msg 25 267 load bluemarble.jpg;
 #X obj 25 248 t b b;
 #X obj 289 261 #color 0 1024 1;
-#X msg 354 209 1024 512 256;
-#X obj 354 190 loadbang;
-#X obj 25 323 #apply_colormap_channelwise;
+#X msg 289 219 1024 512 256;
+#X obj 289 200 loadbang;
+#X obj 25 322 #apply_colormap_channelwise;
 #X obj 25 219 metro 100;
 #X obj 25 202 tgl 15 0 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1
 ;
@@ -20,10 +19,10 @@
 #X obj 0 0 doc_h;
 #X obj 3 383 doc_c 0;
 #X obj 3 423 doc_i 2;
-#X obj 3 507 doc_o 1;
+#X obj 3 546 doc_o 1;
 #X obj 14 453 doc_ii 0;
-#X obj 14 475 doc_ii 1;
-#X obj 14 537 doc_oo 0;
+#X obj 14 501 doc_ii 1;
+#X obj 14 576 doc_oo 0;
 #X obj 97 453 doc_m i0 grid;
 #X text 12 70 currently works only with 3 channels at a time!;
 #X text 15 89 it also works on non-images \, for example on colormaps
@@ -32,24 +31,31 @@
 #X text 14 136 Note: if you just need to apply a palette on an indexed-color
 picture or greyscale picture \, you don't need this. Just use #store
 instead.;
-#X obj 0 569 doc_f;
-#X text 232 453 grid that will be modified by the colormap;
-#X text 232 475 Colormap (aka palette) is a grid[intensity \, channels]
-;
-#X obj 97 475 doc_m i1 grid;
-#X obj 97 537 doc_m o0 grid;
-#X connect 0 0 11 0;
-#X connect 4 0 5 0;
-#X connect 5 0 11 1;
-#X connect 6 0 0 0;
-#X connect 7 0 6 0;
-#X connect 7 1 4 0;
-#X connect 8 0 5 1;
+#X obj 0 628 doc_f;
+#X obj 97 501 doc_m i1 grid;
+#X obj 97 576 doc_m o0 grid;
+#X obj 3 608 doc_also;
+#X obj 103 608 #store;
+#X text 232 501 dim(intensities \, channels): Colormap (aka palette)
+\, as one color-correction curve per channel.;
+#X text 232 576 dim(... \, channels): grid of the same size as the
+input.;
+#X text 232 453 dim(... \, channels): grid that will be modified by
+the colormap. This can be a image or anything else that is made of
+pixels (a palette \, a group of images \, etc);
+#X connect 0 0 10 0;
+#X connect 3 0 4 0;
+#X connect 4 0 10 1;
+#X connect 5 0 0 0;
+#X connect 6 0 5 0;
+#X connect 6 1 3 0;
+#X connect 7 0 4 1;
+#X connect 8 0 7 0;
 #X connect 9 0 8 0;
-#X connect 10 0 9 0;
-#X connect 11 0 1 0;
-#X connect 12 0 7 0;
-#X connect 13 0 12 0;
-#X connect 22 1 27 0;
-#X connect 29 1 28 0;
-#X connect 30 1 2 0;
+#X connect 10 0 1 0;
+#X connect 11 0 6 0;
+#X connect 12 0 11 0;
+#X connect 21 1 32 0;
+#X connect 26 1 30 0;
+#X connect 27 1 31 0;
+#X connect 28 1 29 0;

Modified: trunk/doc/flow_classes/#checkers-help.pd
==============================================================================
--- trunk/doc/flow_classes/#checkers-help.pd (original)
+++ trunk/doc/flow_classes/#checkers-help.pd Sun Feb 20 15:33:24 2011
@@ -1,26 +1,42 @@
-#N canvas 692 0 632 404 10;
-#X obj 171 66 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
--1;
-#X obj 171 135 #out window \, title checkers;
-#X obj 171 112 #checkers;
-#X text 232 330 Results in a checkered pattern of 50% / 75% greys in
+#N canvas 692 0 632 526 10;
+#X obj 51 66 bng 15 250 50 0 empty empty empty 0 -6 0 8 -24198 -1 -1
+;
+#X obj 51 124 #out window \, title checkers;
+#X obj 51 104 #checkers;
+#X text 232 427 Results in a checkered pattern of 50% / 75% greys in
 8 X 8 squares.;
 #X text 11 29 Displays a grid with a pattern of checkered squares.
 ;
-#X obj 14 330 doc_oo 0;
+#X obj 14 427 doc_oo 0;
 #X obj 14 256 doc_ii 0;
-#X obj 171 88 #for (0 0) (128 128);
+#X obj 51 84 #for (0 0) (128 128);
 #X text 232 256 typically the output of [#for (0 0) (height width)
 (1 1)];
 #X obj 0 0 doc_h;
-#X obj 0 375 doc_f;
+#X obj 0 492 doc_f;
 #X obj 3 186 doc_c 0;
 #X obj 3 226 doc_i 1;
-#X obj 3 300 doc_o 1;
+#X obj 3 397 doc_o 1;
 #X obj 97 256 doc_m i0 grid;
-#X obj 97 330 doc_m o0 grid;
+#X obj 97 427 doc_m o0 grid;
+#X obj 3 472 doc_also;
+#X text 232 278 if you send a grid dim(... \, 2) \, it will take each
+dim(2) in it as a pixel position and will give you a light grey or
+medium grey pixel corresponding to that position. (it saves you having
+to do a [#remap_image]);
+#X text 232 339 you can have bigger checkers by using a [# /] between
+[#for] and [#checkers]. you can have smaller checkers by using [# *]
+or changing the step of the [#for].;
+#X obj 103 472 #hello;
+#X obj 151 472 #remap_image;
+#X obj 235 472 #for 0 0;
 #X connect 0 0 7 0;
 #X connect 2 0 1 0;
 #X connect 7 0 2 0;
 #X connect 14 1 8 0;
+#X connect 14 1 17 0;
+#X connect 14 1 18 0;
 #X connect 15 1 3 0;
+#X connect 16 1 19 0;
+#X connect 16 1 20 0;
+#X connect 16 1 21 0;

Modified: trunk/doc/flow_classes/#cluster_avg-help.pd
==============================================================================
--- trunk/doc/flow_classes/#cluster_avg-help.pd (original)
+++ trunk/doc/flow_classes/#cluster_avg-help.pd Sun Feb 20 15:33:24 2011
@@ -1,4 +1,4 @@
-#N canvas 442 66 632 619 10;
+#N canvas 442 66 632 639 10;
 #X obj 14 306 doc_cc 0;
 #X obj 14 381 doc_ii 0;
 #X obj 14 425 doc_ii 1;
@@ -6,7 +6,7 @@
 #X obj 14 531 doc_oo 0;
 #X obj 14 553 doc_oo 1;
 #X obj 0 0 doc_h;
-#X obj 0 585 doc_f;
+#X obj 0 605 doc_f;
 #X obj 3 276 doc_c 1;
 #X obj 3 351 doc_i 3;
 #X obj 3 501 doc_o 2;
@@ -49,6 +49,8 @@
 sample.;
 #X text 232 469 defaults to () for the sake of having a default value.
 ;
+#X obj 3 585 doc_also;
+#X obj 103 585 cv/#KMeans 1;
 #X connect 11 1 17 0;
 #X connect 11 1 43 0;
 #X connect 12 1 23 0;
@@ -64,3 +66,4 @@
 #X connect 30 0 38 0;
 #X connect 31 0 25 0;
 #X connect 38 0 28 0;
+#X connect 44 1 45 0;

Modified: trunk/doc/flow_classes/#draw_polygon-help.pd
==============================================================================
--- trunk/doc/flow_classes/#draw_polygon-help.pd (original)
+++ trunk/doc/flow_classes/#draw_polygon-help.pd Sun Feb 20 15:33:24 2011
@@ -14,7 +14,7 @@
 #X text 403 259 last;
 #X text 403 273 odd;
 #X obj 385 291 listread none last odd;
-#X obj 20 31 tgl 15 0 empty empty empty 17 7 0 10 -24198 -1 -1 1 1
+#X obj 20 31 tgl 15 0 empty empty empty 17 7 0 10 -24198 -1 -1 0 1
 ;
 #X obj 53 135 #checkers;
 #X obj 53 116 #for (0 0) (240 320);
@@ -34,49 +34,46 @@
 #X obj 0 0 doc_h;
 #X obj 3 474 doc_c 0..3;
 #X obj 3 619 doc_i 3;
-#X obj 3 940 doc_o 1;
-#X obj 14 970 doc_oo 0;
+#X obj 3 988 doc_o 1;
+#X obj 14 1018 doc_oo 0;
 #X obj 14 649 doc_ii 0;
-#X obj 14 886 doc_ii 1;
-#X obj 14 908 doc_ii 2;
+#X obj 14 934 doc_ii 1;
+#X obj 14 956 doc_ii 2;
 #X obj 14 504 doc_cc 0;
 #X obj 14 552 doc_cc 1;
 #X obj 14 574 doc_cc 2;
-#X text 232 649 Picture on which the polygon will be superimposed.
-;
-#X text 232 970 Resulting picture.;
+#X text 232 1018 Resulting picture.;
 #X obj 97 504 doc_m c0 symbol/numop;
 #X obj 97 552 doc_m c1 grid;
 #X obj 97 574 doc_m c2 grid;
 #X obj 97 649 doc_m i0 grid;
-#X obj 97 886 doc_m i1 grid;
-#X obj 97 908 doc_m i2 grid;
-#X obj 97 970 doc_m o0 grid;
-#X obj 0 1022 doc_f;
+#X obj 97 934 doc_m i1 grid;
+#X obj 97 956 doc_m i2 grid;
+#X obj 97 1018 doc_m o0 grid;
+#X obj 0 1070 doc_f;
 #X msg 51 273 op *;
 #X msg 56 313 op ^;
 #X msg 53 293 op +;
-#X obj 232 886 doc_same 1;
-#X obj 232 908 doc_same 2;
-#X obj 97 864 doc_m i0 op;
-#X obj 97 737 doc_m i0 omit;
-#X obj 97 671 doc_m i0 draw;
-#X obj 232 864 doc_same 0;
-#X text 232 737 only makes sense in line mode.;
-#X text 232 759 none: draw complete perimetre of polygon;
-#X text 232 781 last: omit last edge \, so that it makes a "polygonal
+#X obj 232 934 doc_same 1;
+#X obj 232 956 doc_same 2;
+#X obj 97 912 doc_m i0 op;
+#X obj 97 785 doc_m i0 omit;
+#X obj 97 719 doc_m i0 draw;
+#X obj 232 912 doc_same 0;
+#X text 232 785 only makes sense in line mode.;
+#X text 232 807 none: draw complete perimetre of polygon;
+#X text 232 829 last: omit last edge \, so that it makes a "polygonal
 line" instead of a polygon;
-#X text 232 816 odd: drawing only even-numbered edges means drawing
+#X text 232 864 odd: drawing only even-numbered edges means drawing
 a set of separate lines instead of a polygon. you should provide an
 even number of vertices in this case.;
-#X text 232 671 fill: draw a filled polygon;
-#X text 232 715 point: draw vertices only (as single pixels);
-#X text 232 693 line: draw lines (see option 'omit') of minimal width
+#X text 232 719 fill: draw a filled polygon;
+#X text 232 763 point: draw vertices only (as single pixels);
+#X text 232 741 line: draw lines (see option 'omit') of minimal width
 ;
-#X obj 3 1002 doc_also;
-#X obj 103 1002 #draw_image;
-#X obj 181 1002 #draw_rect;
-#X obj 3 1002 doc_also;
+#X obj 3 1050 doc_also;
+#X obj 103 1050 #draw_image;
+#X obj 181 1050 #draw_rect;
 #X msg 89 382 4 2 # 0 0 0 100 100 0 100 100;
 #X obj 59 333 r \$0-a;
 #X obj 362 400 s \$0-a;
@@ -85,7 +82,6 @@
 "zerogon" \, such that nothing will be drawn.;
 #X text 232 504 Normally \, you would use the "put" operator \; but
 the + and ^ can be interesting for color effects. (default: put);
-#X text 232 552 Color of the polygon. default is (1 #).;
 #X obj 415 334 vradio 15 1 0 3 empty empty empty 0 -8 0 10 -241291
 -1 -1 0;
 #X msg 415 400 rule \$1;
@@ -149,58 +145,65 @@
 #X connect 10 0 8 0;
 #X connect 11 0 3 0;
 #X restore 194 143 pd star-anim;
-#X connect 1 0 72 1;
+#X text 232 649 dim(rows \, columns \, channels): Picture on which
+the polygon will be superimposed.;
+#X text 232 552 dim(channels): Color of the polygon. default is (1
+#).;
+#X text 232 684 the number of channels must match that of the color
+of the polygon.;
+#X connect 1 0 70 1;
 #X connect 2 0 16 0;
 #X connect 3 0 25 0;
 #X connect 4 0 19 0;
-#X connect 6 0 71 0;
+#X connect 6 0 69 0;
 #X connect 7 0 12 0;
-#X connect 9 0 71 0;
+#X connect 9 0 69 0;
 #X connect 12 0 9 0;
 #X connect 13 0 18 0;
 #X connect 14 0 24 1;
 #X connect 15 0 14 0;
 #X connect 16 0 1 0;
 #X connect 17 0 15 0;
-#X connect 18 0 85 0;
+#X connect 18 0 82 0;
 #X connect 19 0 6 0;
 #X connect 22 0 1 0;
 #X connect 23 0 24 1;
-#X connect 24 0 72 0;
+#X connect 24 0 70 0;
 #X connect 25 0 0 0;
 #X connect 25 1 27 0;
 #X connect 26 0 25 1;
 #X connect 27 0 0 0;
-#X connect 41 1 74 0;
-#X connect 42 1 75 0;
-#X connect 43 1 73 0;
-#X connect 44 1 39 0;
+#X connect 40 1 72 0;
+#X connect 41 1 85 0;
+#X connect 42 1 71 0;
+#X connect 43 1 84 0;
+#X connect 43 1 86 0;
+#X connect 44 1 51 0;
 #X connect 45 1 52 0;
-#X connect 46 1 53 0;
-#X connect 47 1 40 0;
-#X connect 49 0 72 0;
-#X connect 50 0 72 0;
-#X connect 51 0 72 0;
+#X connect 46 1 39 0;
+#X connect 48 0 70 0;
+#X connect 49 0 70 0;
+#X connect 50 0 70 0;
+#X connect 53 1 56 0;
+#X connect 54 1 58 0;
+#X connect 54 1 59 0;
+#X connect 54 1 60 0;
 #X connect 54 1 57 0;
-#X connect 55 1 59 0;
-#X connect 55 1 60 0;
 #X connect 55 1 61 0;
-#X connect 55 1 58 0;
-#X connect 56 1 62 0;
-#X connect 56 1 64 0;
-#X connect 56 1 63 0;
-#X connect 65 1 66 0;
-#X connect 65 1 67 0;
-#X connect 69 0 72 2;
-#X connect 70 0 72 0;
-#X connect 72 0 3 0;
-#X connect 76 0 78 0;
-#X connect 77 0 71 0;
-#X connect 78 0 77 0;
-#X connect 82 0 86 0;
-#X connect 82 1 84 0;
-#X connect 83 0 82 1;
-#X connect 84 0 72 2;
-#X connect 85 0 24 0;
-#X connect 85 1 82 0;
-#X connect 86 0 72 2;
+#X connect 55 1 63 0;
+#X connect 55 1 62 0;
+#X connect 64 1 65 0;
+#X connect 64 1 66 0;
+#X connect 67 0 70 2;
+#X connect 68 0 70 0;
+#X connect 70 0 3 0;
+#X connect 73 0 75 0;
+#X connect 74 0 69 0;
+#X connect 75 0 74 0;
+#X connect 79 0 83 0;
+#X connect 79 1 81 0;
+#X connect 80 0 79 1;
+#X connect 81 0 70 2;
+#X connect 82 0 24 0;
+#X connect 82 1 79 0;
+#X connect 83 0 70 2;



More information about the Gridflow-cvs mailing list