Forums > Jitter

cropping and compositing

April 11, 2008 | 7:01 am

Hello,

I’m trying to crop 3 images and composite 1 image with these 3
and I don’t want my image squeezed.

I used scissors and glue and it’s almost what I want. But one thing is that the control of the split point is quite limited.

I looked up the topics here, and found a patch, which is using jit.gl.videoplane. So I copied and pasted, tried to figure it out.
but the patch included what I don’t need, so complicated for me yet.

Could you help me please? Here is what I got so far.

#P user jit.pwindow 816 231 162 92 0 1 0 0 1 0;
#P user jit.pwindow 463 219 162 92 0 1 0 0 1 0;
#P user jit.pwindow 166 226 162 92 0 1 0 0 1 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 2;
#P message 859 620 80 196617 ; max hidecursor;
#P message 756 619 85 196617 ; max showcursor;
#P window setfont "Fixedwidth Serif" 10.;
#P window linecount 1;
#P newex 755 561 212 1441802 sel 0 1;
#P window linecount 2;
#P message 756 587 98 1441802 ; max showmenubar;
#P message 857 587 98 1441802 ; max hidemenubar;
#P window linecount 1;
#P message 643 626 83 1441802 fullscreen $1;
#P toggle 649 599 15 0;
#P newex 649 577 62 1441802 select 32;
#P newex 649 556 40 1441802 key;
#P window setfont "Sans Serif" 9.;
#P newex 414 574 162 196617 jit.window tricom @size 320 180;
#B color 5;
#P comment 748 108 100 196617 movie 2;
#P message 814 158 27 196617 stop;
#P message 777 159 31 196617 start;
#P toggle 723 107 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 723 129 53 1441802 metro 50;
#P newex 723 188 130 1441802 jit.qt.movie 640 480;
#P message 736 159 34 1441802 read;
#P window setfont "Sans Serif" 9.;
#P message 217 166 27 196617 stop;
#P message 183 166 31 196617 start;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 409 327 222 1441802 jit.scissors @rows 1 @columns 16;
#B color 5;
#P window setfont "Sans Serif" 9.;
#P newex 419 165 195 196617 jit.qt.grab 640 480 @vmode 2 @unique 1;
#P message 538 136 44 196617 settings;
#P comment 441 112 105 196617 Use live camera input;
#P message 503 135 31 196617 close;
#P message 472 135 28 196617 open;
#P toggle 419 111 15 0;
#P newex 419 135 52 196617 metro 50;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 713 335 222 1441802 jit.scissors @rows 1 @columns 16;
#B color 5;
#P newex 126 330 222 1441802 jit.scissors @rows 1 @columns 16;
#B color 5;
#P user jit.pwindow 398 452 162 92 0 1 0 0 1 0;
#P newex 390 379 209 1441802 jit.glue @rows 1 @columns 16;
#B color 5;
#P toggle 129 114 15 0;
#P newex 129 136 53 1441802 metro 50;
#P newex 129 195 130 1441802 jit.qt.movie 640 480;
#P message 142 166 34 1441802 read;
#P window setfont "Sans Serif" 9.;
#P comment 157 115 100 196617 movie 1;
#P connect 33 1 35 0;
#P connect 33 1 31 0;
#P connect 20 0 8 0;
#P connect 20 0 38 0;
#P connect 33 0 34 0;
#P connect 33 0 32 0;
#P fasten 29 0 30 0 654 617 645 617 645 595 648 595;
#P fasten 29 0 33 0 654 617 752 617 752 563 760 563;
#P fasten 23 0 20 0 782 182 728 182;
#P fasten 19 0 20 0 741 184 728 184;
#P connect 21 0 20 0;
#P fasten 24 0 20 0 819 182 728 182;
#P connect 22 0 21 0;
#P connect 28 0 29 0;
#P connect 27 0 28 0;
#P connect 8 15 5 15;
#P connect 8 14 5 14;
#P connect 8 13 5 13;
#P connect 16 12 5 12;
#P connect 16 11 5 11;
#P connect 16 10 5 10;
#P connect 16 9 5 9;
#P connect 16 8 5 8;
#P connect 16 7 5 7;
#P connect 16 6 5 6;
#P connect 15 0 16 0;
#P connect 15 0 37 0;
#P connect 16 5 5 5;
#P connect 16 4 5 4;
#P connect 7 3 5 3;
#P connect 9 0 15 0;
#P hidden connect 14 0 15 0;
#P fasten 11 0 15 0 477 157 424 157;
#P fasten 12 0 15 0 508 157 424 157;
#P connect 10 0 9 0;
#P connect 7 2 5 2;
#P connect 30 0 26 0;
#P connect 6 0 26 0;
#P connect 7 1 5 1;
#P connect 5 0 6 0;
#P connect 7 0 5 0;
#P connect 2 0 7 0;
#P connect 2 0 36 0;
#P connect 3 0 2 0;
#P fasten 1 0 2 0 147 191 134 191;
#P fasten 17 0 2 0 188 189 134 189;
#P fasten 18 0 2 0 222 188 134 188;
#P connect 4 0 3 0;
#P window clipboard copycount 39;


April 11, 2008 | 12:36 pm

If I should use jit.gl.videoplane, and it’s the only way to do it. Could any body suggest a patch, please?

eejin


April 11, 2008 | 1:27 pm

If your purpose is to juxtapose these images, why don’t simply use
source dans destination messages described in the tutorial j14 ?


April 11, 2008 | 1:29 pm

Here’s a patch I made a while ago that does this w/o GL

best,
Zachary

max v2;
#N vpatcher 82 246 1288 858;
#P origin 0 33;
#P window setfont "Sans Serif" 9.;
#P newex 455 68 40 196617 t b b b;
#P user jit.fpsgui 19 469 60 196617 3;
#P message 933 98 33 196617 start;
#P message 901 98 29 196617 stop;
#P message 869 98 30 196617 read;
#P newex 995 317 55 196617 pak 0 319;
#P user jit.pwindow 871 158 82 62 0 1 0 0 1 0;
#P number 874 317 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 995 339 110 196617 expr abs($i2-$i1) + 1;
#P message 874 338 62 196617 dim $1 240;
#P number 1085 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 1032 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 959 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 914 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 979 266 116 196617 pak srcdimend 319 239;
#P newex 869 266 100 196617 pak srcdimstart 0 0;
#P newex 853 362 129 196617 jit.matrix 4 char 320 240;
#P user jit.fpsgui 789 323 60 196617 3;
#P newex 853 296 303 196617 jit.matrix @usesrcdim 1 @srcdimstart 0 0 @srcdimend 319 239;
#P newex 853 132 190 196617 jit.qt.movie 320 240 @vol 0. @unique 0;
#P newex 83 432 238 196617 jit.concat @autoclear 0 @truncate 0 @concatdim 0;
#P message 550 98 33 196617 start;
#P message 518 98 29 196617 stop;
#P message 486 98 30 196617 read;
#P newex 83 388 238 196617 jit.concat @autoclear 0 @truncate 0 @concatdim 0;
#P newex 104 480 103 196617 pak 320 320 320;
#P newex 612 317 55 196617 pak 0 319;
#P newex 223 317 55 196617 pak 0 319;
#P number 102 317 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 104 503 91 196617 expr $i1+$i2+$i3;
#P newex 223 339 110 196617 expr abs($i2-$i1) + 1;
#P message 102 338 62 196617 dim $1 240;
#P message 104 526 64 196617 size $1 240;
#P newex 83 557 177 196617 jit.window composite @size 960 240;
#P user jit.pwindow 101 158 82 62 0 1 0 0 1 0;
#P user jit.pwindow 488 158 82 62 0 1 0 0 1 0;
#P number 491 317 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 612 339 110 196617 expr abs($i2-$i1) + 1;
#P message 491 338 62 196617 dim $1 240;
#P number 315 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 262 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 189 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 144 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 209 266 116 196617 pak srcdimend 319 239;
#P newex 99 266 100 196617 pak srcdimstart 0 0;
#P newex 83 362 129 196617 jit.matrix 4 char 320 240;
#P user jit.fpsgui 19 325 60 196617 3;
#P newex 83 296 303 196617 jit.matrix @usesrcdim 1 @srcdimstart 0 0 @srcdimend 319 239;
#P number 702 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 649 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 576 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 531 239 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 596 266 116 196617 pak srcdimend 319 239;
#P newex 486 266 100 196617 pak srcdimstart 0 0;
#P newex 470 362 129 196617 jit.matrix 4 char 320 240;
#P user jit.fpsgui 406 323 60 196617 3;
#P newex 470 296 303 196617 jit.matrix @usesrcdim 1 @srcdimstart 0 0 @srcdimend 319 239;
#P user jit.fpsgui 19 419 60 196617 3;
#P toggle 455 25 15 0;
#P newex 455 46 51 196617 qmetro 2;
#P newex 470 132 190 196617 jit.qt.movie 320 240 @vol 0. @unique 0;
#P message 171 99 33 196617 start;
#P message 137 99 29 196617 stop;
#P message 103 99 30 196617 read;
#P newex 83 133 190 196617 jit.qt.movie 320 240 @vol 0. @unique 0;
#P user panel 138 233 988 27;
#X brgb 208 181 232;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P window setfont "Sans Serif" 14.;
#P comment 13 32 348 196622 Mash 3 Vids together Horizontally , with flexibility;
#P fasten 19 0 20 0 88 318 24 318;
#P fasten 42 0 9 0 88 412 24 412;
#P fasten 46 0 65 0 88 463 24 463;
#P fasten 66 0 2 0 460 90 88 90;
#P connect 5 0 2 0;
#P connect 4 0 2 0;
#P connect 3 0 2 0;
#P connect 2 0 19 0;
#P fasten 22 0 19 0 104 289 88 289;
#P fasten 23 0 19 0 214 289 88 289;
#P connect 19 0 21 0;
#P connect 35 0 21 0;
#P connect 21 0 42 0;
#P connect 42 0 46 0;
#P connect 46 0 33 0;
#P fasten 34 0 33 0 109 549 88 549;
#P fasten 2 0 32 0 88 156 107 156;
#P connect 36 0 38 0;
#P connect 38 0 35 0;
#P fasten 36 0 41 0 228 463 109 463;
#P connect 41 0 37 0;
#P connect 37 0 34 0;
#P connect 24 0 22 1;
#P fasten 29 0 41 1 617 468 155 468;
#P connect 25 0 22 2;
#P fasten 58 0 41 2 1000 473 201 473;
#P connect 24 0 39 0;
#P connect 39 0 36 0;
#P connect 26 0 23 1;
#P connect 26 0 39 1;
#P fasten 12 0 42 1 475 382 316 382;
#P fasten 50 0 46 1 858 424 316 424;
#P connect 27 0 23 2;
#P fasten 10 0 11 0 475 318 411 318;
#P connect 8 0 7 0;
#P connect 7 0 66 0;
#P connect 66 1 6 0;
#P connect 43 0 6 0;
#P connect 44 0 6 0;
#P connect 45 0 6 0;
#P connect 6 0 10 0;
#P fasten 13 0 10 0 491 288 475 288;
#P fasten 14 0 10 0 601 288 475 288;
#P connect 10 0 12 0;
#P connect 28 0 12 0;
#P fasten 6 0 31 0 475 156 494 156;
#P connect 29 0 30 0;
#P connect 30 0 28 0;
#P connect 15 0 13 1;
#P connect 16 0 13 2;
#P connect 15 0 40 0;
#P connect 40 0 29 0;
#P connect 17 0 14 1;
#P connect 17 0 40 1;
#P connect 18 0 14 2;
#P fasten 48 0 49 0 858 318 794 318;
#P fasten 66 2 47 0 490 91 858 91;
#P connect 64 0 47 0;
#P connect 63 0 47 0;
#P connect 62 0 47 0;
#P connect 47 0 48 0;
#P fasten 52 0 48 0 984 288 858 288;
#P fasten 51 0 48 0 874 288 858 288;
#P connect 48 0 50 0;
#P connect 57 0 50 0;
#P fasten 47 0 60 0 858 156 877 156;
#P connect 58 0 59 0;
#P connect 59 0 57 0;
#P connect 53 0 51 1;
#P connect 54 0 51 2;
#P connect 53 0 61 0;
#P connect 61 0 58 0;
#P connect 55 0 52 1;
#P connect 55 0 61 1;
#P connect 56 0 52 2;
#P pop;


April 12, 2008 | 2:53 am

Thank you all for your help.

Zachary, the patch you made does what I want. Now it has a lot of things I don’t understand, I can look up the help menu and figure it out. And I should read the tutorial 14!!

Thank you again, senior members~

eejin


Viewing 5 posts - 1 through 5 (of 5 total)