hello,
*) a [t b b] is missing after the loadbang. (the 4 is send to the / befor the 2048, so the size of the square is 0 *) the gemhead should be connected to pix_image, not to pix_crop *) i don't understand the use of pix_mean_color. maybe you want to use [pix_resize 1 1].
if you want to average the image on 64x48 blocs, you should consider the use of [pix_resize 64 48]
cheers cyrille
Le 31/05/2011 22:35, Sylvain a écrit :
Hi all,
Here is a patch below, it's not acting as I expect and I suspect I don't use pix_mean as needed. My original image is 2048x1536. I hope the patch talks for itself. Btw, I am interested to know how to process the whole image at once (i.e. not square by square)
Best
S.
#N canvas 571 169 476 596 10; #X obj -354 -293 gemhead; #X obj -339 -199 pix_crop; #X obj -339 -159 pix_mean_color; #X obj -240 -314 f; #X floatatom -317 -219 5 0 0 0 - - -; #X floatatom -328 -242 5 0 0 0 - - -; #X obj -240 -202 f; #X msg -203 -106 2048; #X obj -239 -61 /; #X msg -238 -84 4; #X obj -339 -80 translateXYZ; #X obj -339 -384 pix_image; #X obj -339 -451 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #N canvas 0 22 450 300 openpanel 0; #X obj 114 62 inlet; #X obj 121 254 outlet; #X obj 114 125 openpanel; #X msg 114 162 set open $1; #X obj 114 199 t b a; #X connect 0 0 2 0; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 4 0 1 0; #X connect 4 1 1 0; #X restore -339 -430 pd openpanel; #X obj -240 -339 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj -339 -26 square 1; #X msg -218 -340 0; #X obj -240 -383 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #X obj -240 -223 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X obj -316 -104 - 4; #X obj -316 -134 / 96; #X obj -293 -105 + 4; #X floatatom -240 -136 5 0 0 0 - - -; #X obj -240 -291 % 768; #X obj -240 -179 % 1024; #X obj -240 -157 - 1024; #X obj -240 -268 == 0; #X obj -240 -246 sel 1; #X obj -240 -362 metro 10; #X obj -339 -55 pix_texture; #X obj -279 -136 / 128; #X obj -203 -85 / 16; #X obj -202 -201 + 16; #X obj -213 -315 + 16; #X msg -331 -266 16; #X obj -203 -133 loadbang; #X msg -339 -407 open $1; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 2 0 10 0; #X connect 3 0 23 0; #X connect 3 0 33 0; #X connect 4 0 1 2; #X connect 5 0 1 1; #X connect 6 0 24 0; #X connect 6 0 32 0; #X connect 7 0 31 0; #X connect 8 0 15 1; #X connect 9 0 8 0; #X connect 10 0 29 0; #X connect 11 0 1 0; #X connect 12 0 13 0; #X connect 13 0 36 0; #X connect 14 0 3 0; #X connect 16 0 3 0; #X connect 17 0 28 0; #X connect 18 0 6 0; #X connect 19 0 10 1; #X connect 20 0 19 0; #X connect 21 0 10 2; #X connect 22 0 30 0; #X connect 23 0 1 4; #X connect 23 0 20 0; #X connect 23 0 26 0; #X connect 24 0 1 3; #X connect 24 0 25 0; #X connect 25 0 22 0; #X connect 26 0 27 0; #X connect 27 0 18 0; #X connect 28 0 14 0; #X connect 29 0 15 0; #X connect 30 0 21 0; #X connect 31 0 8 1; #X connect 32 0 6 1; #X connect 33 0 3 1; #X connect 34 0 5 0; #X connect 34 0 4 0; #X connect 35 0 9 0; #X connect 35 0 7 0; #X connect 35 0 34 0; #X connect 36 0 11 0;
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list