Hello everyone. I'm having trouble using pix_compare with a pix_video stream together with a pix_image. I want to do lumakeying but the pix's don't have the same size (the videostream is not a power of 2). So I get the following from Gem:
Gem: GemPixDualObj: two images do not have equal dimensions
Anyway around? Using Windows XP + Gem 0.888-rc2
My patch:
#N canvas 0 0 767 607 12; #X msg 60 93 create; #X msg 28 92 1; #X msg 122 93 dimen 320 240; #X obj 21 163 gemwin; #X obj 31 55 t b b b; #X obj 30 25 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 420 73 pix_video; #X obj 463 110 pix_delay; #X obj 420 138 pix_diff; #X floatatom 450 499 0 0 0 0 - - -; #X obj 425 532 translateXYZ; #X floatatom 476 500 5 0 0 0 - - -; #X floatatom 525 501 5 0 0 0 - - -; #X msg 525 480 1; #X obj 420 183 pix_blur; #X obj 525 460 loadbang; #X obj 420 49 gemhead; #X obj 420 236 pix_grey; #X obj 608 308 pix_image; #X obj 598 246 gemhead; #X obj 425 557 square 4; #X obj 433 430 pix_texture; #X msg 525 42 setup; #X msg 513 68 dialog format; #X obj 407 293 pix_gain; #X msg 482 292 $1 $1 $1; #X msg 443 360 direction $1; #X obj 443 341 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 645 215 loadbang; #X msg 615 272 open dancer.jpg; #X msg 559 102 5; #X msg 532 169 0.9; #X msg 498 257 5; #X obj 433 394 pix_compare; #X connect 0 0 3 0; #X connect 1 0 3 0; #X connect 2 0 3 0; #X connect 4 0 1 0; #X connect 4 1 0 0; #X connect 4 2 2 0; #X connect 5 0 4 0; #X connect 6 0 7 0; #X connect 6 0 8 0; #X connect 7 0 8 1; #X connect 8 0 14 0; #X connect 9 0 10 1; #X connect 10 0 20 0; #X connect 11 0 10 2; #X connect 12 0 10 3; #X connect 13 0 12 0; #X connect 14 0 17 0; #X connect 15 0 13 0; #X connect 16 0 6 0; #X connect 17 0 24 0; #X connect 18 0 33 1; #X connect 19 0 18 0; #X connect 21 0 10 0; #X connect 22 0 6 0; #X connect 23 0 6 0; #X connect 24 0 33 0; #X connect 25 0 24 2; #X connect 26 0 33 0; #X connect 27 0 26 0; #X connect 28 0 29 0; #X connect 28 0 32 0; #X connect 28 0 31 0; #X connect 28 0 30 0; #X connect 29 0 18 0; #X connect 30 0 7 1; #X connect 31 0 14 1; #X connect 32 0 25 0; #X connect 33 0 21 0;
Thanks all I.
Ivan Franco wrote:
Hello everyone. I'm having trouble using pix_compare with a pix_video stream together with a pix_image. I want to do lumakeying but the pix's don't have the same size (the videostream is not a power of 2). So I get the following from Gem:
Gem: GemPixDualObj: two images do not have equal dimensions
Anyway around? Using Windows XP + Gem 0.888-rc2
well, why not try the most obvious ? assuming that you do not want to change the resolution of the video-stream, why not changing the size of static image ? any decent image-processing programm (like the Gim) could do this; even image-viewers (like IrfanView) have this capabilities nowadays...
mfg.a.srd IOhannes
ok, now for the real implicit problem. the video stream is not square (never a power of 2 in width and weight). and 320 (by 240) is not a power of 2 also... I.
On 26/mai/2004, at 11:48, zmoelnig@iem.at wrote:
Ivan Franco wrote:
Hello everyone. I'm having trouble using pix_compare with a pix_video stream together with a pix_image. I want to do lumakeying but the pix's don't have the same size (the videostream is not a power of 2). So I get the following from Gem:
Gem: GemPixDualObj: two images do not have equal dimensions
Anyway around? Using Windows XP + Gem 0.888-rc2
well, why not try the most obvious ? assuming that you do not want to change the resolution of the video-stream, why not changing the size of static image ? any decent image-processing programm (like the Gim) could do this; even image-viewers (like IrfanView) have this capabilities nowadays...
mfg.a.srd IOhannes
Ivan Franco ivan.franco@ydreams.com http://www.iilab.com/ivan/
YDreams SA http://www.ydreams.com
Disclaimer and Confidentiality Notice: YDreams accepts no responsibility or liability whatsoever with regard to the information herein contained. This message including any attachment hereof is confidential and may be privileged or otherwise legally protected from disclosure and may only be read, copied and used by the intended recipient. If you are not the intended recipient, please contact the sender immediately (+351 21 294 9683) and delete this email and any attachment permanently from your system. You must not copy this email or any attachment or disclose its/their contents to any other person or entity. Thank you. _________________________________
Ivan Franco wrote:
ok, now for the real implicit problem. the video stream is not square (never a power of 2 in width and weight). and 320 (by 240) is not a power of 2 also... I.
so what ? Gem can handle images that are non-power-of-2 (at least with [pix_texture]; but you should never ever use [pix_draw] if you don't know exactly why)
mfg.as.dr IOhannes