Forums > Jitter

jit.lcd- smooth the edges?

April 15, 2008 | 3:18 am

at the moment this patch takes a live camera feed, and uses the centre of mass to erase an image of reveal another.

But it does so in large square chunks. I know how to change the pen size but does anyone know how to soften the edges and even change the shape?

Here’s the patch so far- excuse the mess.

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 243 -215 26 196617 251;
#P newex 286 -238 48 196617 loadbang;
#P message 161 524 29 196617 stop;
#P button 36 297 15 0;
#P toggle 54 243 15 0;
#P newex 52 272 82 196617 metro 1000000;
#P user jit.pwindow 0 425 82 62 0 1 0 0 1 0;
#P message 66 304 87 196617 read vampire.jpg;
#P newex 63 339 63 196617 jit.qt.movie;
#P comment 440 165 50 196617 Bang Me!;
#B color 7;
#P button 440 186 60 0;
#P message 468 705 14 196617 2;
#P message 428 706 14 196617 1;
#P message 401 706 14 196617 3;
#P message 411 629 20 196617 30;
#P message 284 627 14 196617 4;
#P toggle 463 595 15 0;
#P newex 369 564 48 196617 loadbang;
#P flonum 403 745 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 512 745 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 512 768 41 196617 ring $1;
#P message 403 768 52 196617 center $1;
#P flonum 620 745 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 620 768 49 196617 ripple $1;
#P number 278 657 35 9 0 4 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 278 676 45 196617 mode $1;
#P number 413 658 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 413 676 48 196617 range $1;
#P window linecount 5;
#P comment 324 650 74 196617 0 = row ; 1 = column ; 2 = cross ; 3 = diagonal ; 4 = square ;;
#P window linecount 1;
#P newex 336 744 60 196617 jit.fastblur;
#P message 441 249 20 196617 13;
#P newex 886 629 29 196617 t b f;
#P newex 871 434 71 196617 prepend set 1;
#P message 919 594 25 196617 -10;
#P newex 871 653 50 196617 accum 0.;
#P flonum 871 674 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 919 573 65 196617 sel 102 103;
#P message 951 594 20 196617 10;
#P newex 919 552 40 196617 key;
#P user multiSlider 871 456 27 166 0. 128. 1 2681 47 0 0 2 0 0 0;
#M frgb 205 185 27;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 241 227 122;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P window linecount 3;
#P comment 900 467 100 196617 Control video mixing through slider with F and G;
#B color 12;
#P window linecount 1;
#P message 607 477 29 196617 stop;
#P newex 703 631 73 196617 prepend xfade;
#P flonum 703 597 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 703 564 41 196617 * 0.01;
#P newex 703 501 50 196617 line 0 50;
#P newex 703 470 30 196617 pack;
#P number 731 449 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user hslider 703 428 18 128 102 1 0 0;
#P user hslider 703 532 18 128 128 1 0 0;
#P newex 562 147 49 196617 jit.xfade;
#P comment 564 428 105 196617 Sourced Video;
#P toggle 511 425 15 0;
#P message 567 477 31 196617 close;
#P message 564 458 75 196617 read craig.AVI;
#P newex 511 458 46 196617 metro 2;
#P user jit.pwindow 511 529 130 114 0 1 0 0 1 0;
#P newex 512 497 105 196617 jit.qt.movie 720 576;
#P user panel 498 417 503 293;
#X brgb 191 191 191;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P newex 1042 -221 87 196617 jit.window ‘test’;
#P message 941 -280 68 196617 fullscreen $1;
#P toggle 924 -280 15 0;
#P newex 966 -305 35 196617 sel 27;
#P newex 924 -305 40 196617 key;
#P user panel 913 -319 101 67;
#X brgb 1 177 181;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P window linecount 2;
#P comment 914 -249 100 196617 fullscreen: toggle with esc button;
#P number 421 276 35 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user jit.pwindow 356 -267 129 110 0 1 0 0 1 0;
#P toggle 300 466 15 0;
#P window linecount 1;
#P message 270 481 14 196617 2;
#P newex 245 444 48 196617 loadbang;
#P newex 70 -223 151 196617 jit.scalebias @scale -1 @bias 1;
#P number 147 400 35 9 0 2 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 147 420 45 196617 mode $1;
#P number 187 448 35 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 147 448 35 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 187 471 29 196617 y $1;
#P newex 51 522 30 196617 print;
#P message 147 471 29 196617 x $1;
#P newex 21 499 44 196617 jit.avg4;
#B color 5;
#P flonum 222 535 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 222 560 39 196617 lum $1;
#P flonum 309 535 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 309 560 42 196617 fade $1;
#P flonum 264 535 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 264 560 35 196617 tol $1;
#P message 298 360 73 196617 moveto $1 $2;
#P user ubumenu 199 387 60 196617 0 1 1 0;
#X add Copy;
#X add Or;
#X add Xor;
#X add Bic;
#X add NotCopy;
#X add NotOr;
#X add NotXor;
#X add NotBic;
#X prefix_set 0 0 0;
#P message 199 406 61 196617 penmode $1;
#P user jit.pwindow 0 700 322 242 0 1 0 0 1 0;
#P newex 189 621 61 196617 jit.lumakey;
#P message 111 507 75 196617 read craig.AVI;
#P newex 108 542 63 196617 jit.qt.movie;
#P user jit.pwindow 22 618 82 62 0 1 0 0 1 0;
#P newex 260 242 38 196617 r time;
#P message 335 275 32 196617 reset;
#P message 371 264 45 196617 color $1;
#P number 371 245 35 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 323 247 31 196617 clear;
#P message 212 356 65 196617 lineto $1 $2;
#P message 419 304 71 196617 pensize $1 $1;
#P user jit.pwindow 358 449 100 85 0 1 0 0 1 0;
#P newex 268 407 111 196617 jit.lcd 4 char 320 240;
#P flonum 267 323 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 221 325 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 218 280 64 196617 unpack 0. 0.;
#P message 418 360 111 196617 paintoval $1 $2 50 50;
#P flonum 1117 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1117 236 39 196617 lum $1;
#P flonum 1204 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1204 236 42 196617 fade $1;
#P flonum 1159 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1159 236 35 196617 tol $1;
#P message 1193 36 73 196617 moveto $1 $2;
#P user ubumenu 1094 63 60 196617 0 1 1 0;
#X add Copy;
#X add Or;
#X add Xor;
#X add Bic;
#X add NotCopy;
#X add NotOr;
#X add NotXor;
#X add NotBic;
#X prefix_set 0 0
0;
#P message 1094 82 61 196617 penmode $1;
#P newex 1084 297 61 196617 jit.lumakey;
#P message 1020 156 30 196617 read;
#P newex 1017 191 63 196617 jit.qt.movie;
#P user jit.pwindow 1023 323 82 62 0 1 0 0 1 0;
#P newex 1155 -82 38 196617 r time;
#P newex 243 -260 38 196617 s time;
#P message 1218 -60 32 196617 reset;
#P message 1266 -60 45 196617 color $1;
#P number 1266 -79 35 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1218 -77 31 196617 clear;
#P message 1107 32 65 196617 lineto $1 $2;
#P number 1315 -48 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1314 -20 71 196617 pensize $1 $1;
#P user jit.pwindow 1303 167 162 122 0 1 0 0 1 0;
#P newex 1163 83 111 196617 jit.lcd 4 char 320 240;
#P flonum 1162 -1 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 1116 1 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1113 -44 64 196617 unpack 0. 0.;
#P message 1313 36 111 196617 paintoval $1 $2 50 50;
#P newex 371 -81 106 196617 cv.jit.centroids.draw;
#P newex 70 -79 106 196617 cv.jit.centroids.draw;
#P user jit.fpsgui 70 142 60 196617 0;
#P newex 371 -128 78 196617 cv.jit.centroids;
#P comment 451 -36 83 196617 Greyscale image;
#B frgb 255 255 255;
#P user jit.pwindow 370 -19 162 122 0 1 0 0 1 0;
#P user panel 360 -42 184 154;
#X brgb 140 140 140;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P flonum 198 -79 53 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 263 -76 31 196617 Mass;
#P window linecount 3;
#P comment 249 -16 105 196617 Centroids change pictslider knob position.;
#P window linecount 1;
#P newex 70 -108 78 196617 cv.jit.centroids;
#P newex 70 -192 64 196617 jit.rgb2luma;
#P comment 165 -37 65 196617 Binary image;
#B frgb 255 255 255;
#P window linecount 3;
#P comment 249 -190 105 196617 Change thresholding value to obtain a binary image;
#P user jit.pwindow 69 -20 162 122 0 1 0 0 1 0;
#P number 207 -184 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 70 -146 101 196617 jit.op @op > @val 50;
#P user panel 203 -197 157 49;
#X brgb 198 198 198;
#X frgb 140 140 140;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P message 131 -263 44 196617 settings;
#P comment 50 -317 105 196617 Use live camera input;
#P message 112 -294 31 196617 close;
#P message 81 -294 28 196617 open;
#P toggle 28 -318 15 0;
#P newex 28 -298 46 196617 metro 2;
#P newex 28 -264 98 196617 jit.qt.grab 320 240;
#P user panel 20 -329 162 94;
#X brgb 140 140 140;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 59 -43 184 154;
#X brgb 140 140 140;
#X frgb 0 0 0;
#X border 0;
#X rounded 0;
#X shadow 0;
#X done;
#P user panel 191 -86 108 30;
#X brgb 210 210 195;
#X frgb 140 140 140;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P comment 974 -94 100 196617 Greyscale tester;
#B color 7;
#P user panel 960 -106 550 516;
#X brgb 224 229 69;
#X frgb 0 0 0;
#X border 1;
#X rounded 0;
#X shadow 0;
#X done;
#P connect 37 0 36 0;
#P connect 34 0 48 0;
#P connect 34 0 35 0;
#P connect 40 0 41 0;
#P connect 55 0 54 0;
#P connect 26 0 29 0;
#P connect 26 0 38 0;
#P connect 26 0 31 0;
#P connect 26 0 51 0;
#P connect 38 0 34 0;
#P connect 36 0 34 0;
#P connect 42 0 34 0;
#P connect 39 0 34 0;
#P connect 41 0 34 0;
#P connect 49 0 34 0;
#P connect 30 0 34 0;
#P connect 51 0 34 0;
#P connect 44 0 46 0;
#P connect 44 0 34 0;
#P connect 31 1 33 0;
#P connect 53 0 52 0;
#P connect 46 0 45 0;
#P connect 46 0 48 1;
#P connect 57 0 56 0;
#P connect 31 0 32 0;
#P connect 50 0 49 0;
#P connect 56 0 48 0;
#P connect 52 0 48 0;
#P connect 54 0 48 0;
#P connect 114 0 105 0;
#P connect 104 0 105 0;
#P connect 47 0 46 0;
#P fasten 101 0 102 0 965 -288 965 -303;
#P connect 128 1 127 0;
#P fasten 103 0 104 0 940 -265 940 -280;
#P fasten 102 0 103 0 971 -283 929 -283;
#P connect 128 0 131 0;
#P connect 126 0 128 0;
#P connect 133 1 130 1;
#P connect 131 0 133 0;
#P connect 127 0 133 0;
#P connect 130 0 129 0;
#P connect 125 0 130 0;
#P connect 133 0 130 0;
#P connect 132 0 125 0;
#P connect 129 0 116 0;
#P fasten 129 0 132 0 876 697 1010 697 1010 426 876 426;
#P connect 117 0 118 1;
#P connect 121 0 122 0;
#P connect 120 0 121 0;
#P connect 115 0 120 0;
#P connect 119 0 115 0;
#P connect 118 0 119 0;
#P connect 116 0 118 0;
#P connect 142 0 141 0;
#P connect 153 0 142 0;
#P connect 107 0 108 0;
#P connect 107 0 114 1;
#P connect 112 0 109 0;
#P connect 112 0 110 0;
#P connect 74 0 75 0;
#P connect 74 0 114 0;
#P connect 122 0 114 0;
#P connect 145 0 144 0;
#P connect 152 0 145 0;
#P connect 111 0 107 0;
#P connect 110 0 107 0;
#P connect 109 0 107 0;
#P connect 123 0 107 0;
#P connect 148 0 149 0;
#P hidden connect 148 0 151 0;
#P connect 148 0 150 0;
#P hidden connect 148 0 152 0;
#P hidden connect 148 0 153 0;
#P connect 18 0 13 0;
#P fasten 18 0 26 0 75 -156 191 -156 191 -137 376 -137;
#P fasten 18 0 29 1 75 -156 191 -156 191 -137 472 -137;
#P connect 147 0 148 0;
#P connect 154 0 134 0;
#P connect 134 0 98 0;
#P connect 98 0 64 0;
#P connect 138 0 137 0;
#P connect 146 0 143 0;
#P connect 151 0 146 0;
#P connect 67 0 68 0;
#P connect 29 0 24 0;
#P connect 62 0 85 0;
#P connect 62 0 135 0;
#P connect 62 0 63 0;
#P connect 5 0 93 0;
#P fasten 5 0 97 0 33 -228 211 -228 211 -293 362 -293;
#P connect 139 0 135 0;
#P connect 137 0 135 0;
#P fasten 143 0 135 0 408 789 399 789 399 733 341 733;
#P fasten 144 0 135 0 517 789 478 783 442 737 341 737;
#P fasten 141 0 135 0 613 790 558 736 396 730;
#P connect 82 0 81 0;
#P connect 94 0 96 0;
#P connect 19 0 28 0;
#P connect 19 0 65 0;
#P connect 19 0 59 0;
#P connect 19 0 78 0;
#P connect 140 0 139 0;
#P connect 96 0 95 0;
#P connect 156 0 158 0;
#P connect 156 0 62 0;
#P connect 70 0 72 0;
#P connect 70 0 62 0;
#P connect 78 0 62 0;
#P connect 58 0 62 0;
#P connect 76 0 62 0;
#P connect 68 0 62 0;
#P connect 66 0 62 0;
#P connect 69 0 62 0;
#P connect 64 0 62 0;
#P connect 65 0 62 0;
#P connect 59 1 61 0;
#P connect 80 0 79 0;
#P connect 163 0 164 0;
#P connect 6 0 5 0;
#P connect 6 0 43 0;
#P connect 72 0 71 0;
#P connect 72 0 74 1;
#P connect 84 0 83 0;
#P connect 59 0 60 0;
#P connect 164 0 14 0;
#P connect 77 0 76 0;
#P fasten 19 1 22 0 109 -88 203 -88;
#P connect 81 0 74 0;
#P connect 79 0 74 0;
#P connect 83 0 74 0;
#P connect 135 0 74 0;
#P connect 90 0 88 0;
#P connect 95 0 89 0;
#P connect 95 0 90 0;
#P connect 13 0 19 0;
#P fasten 13 0 28 1 75 -121 171 -121;
#P fasten 14 0 13 1 212 -164 166 -164;
#P connect 89 0 86 0;
#P connect 92 0 91 0;
#P connect 162 0 72 0;
#P connect 73 0 72 0;
#P connect 7 0 6 0;
#P connect 7 0 8 0;
#P connect 15 0 27 0;
#P connect 28 0 15 0;
#P connect 93 0 18 0;
#P connect 159 0 161 0;
#P connect 159 0 156 0;
#P connect 157 0 156 0;
#P connect 160 0 159 0;
#P connect 85 1 87 0;
#P fasten 9 0 5 0 117 -272 33 -272;
#P fasten 8 0 5 0 86 -272 33 -272;
#P hidden connect 11 0 5 0;
#P fasten 86 0 85 0 152 492 26 492;
#P fasten 88 0 85 0 192 492 26 492;
#P fasten 91 0 85 0 152 438 26 438;
#P window clipboard copycount 165;

Cheers



PKM
April 15, 2008 | 10:51 am

You could try sending the output of the lcd to a jit.fastblur and play with
the center and ring sizes

I once tried it but it wasn’t giving me enough blurring and ended up having
to move to shader computations. Then the abstraction jit.slab.gauss.6x is
really nice.

Parag.

On Tue, Apr 15, 2008 at 4:18 AM, johnsoncraigsbc
wrote:

>
> at the moment this patch takes a live camera feed, and uses the centre of
> mass to erase an image of reveal another.
>
> But it does so in large square chunks. I know how to change the pen size
> but does anyone know how to soften the edges and even change the shape?
>
> Here’s the patch so far- excuse the mess.
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 1;
> #P message 243 -215 26 196617 251;
> #P newex 286 -238 48 196617 loadbang;
> #P message 161 524 29 196617 stop;
> #P button 36 297 15 0;
> #P toggle 54 243 15 0;
> #P newex 52 272 82 196617 metro 1000000;
> #P user jit.pwindow 0 425 82 62 0 1 0 0 1 0;
> #P message 66 304 87 196617 read vampire.jpg;
> #P newex 63 339 63 196617 jit.qt.movie;
> #P comment 440 165 50 196617 Bang Me!;
> #B color 7;
> #P button 440 186 60 0;
> #P message 468 705 14 196617 2;
> #P message 428 706 14 196617 1;
> #P message 401 706 14 196617 3;
> #P message 411 629 20 196617 30;
> #P message 284 627 14 196617 4;
> #P toggle 463 595 15 0;
> #P newex 369 564 48 196617 loadbang;
> #P flonum 403 745 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 512 745 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 512 768 41 196617 ring $1;
> #P message 403 768 52 196617 center $1;
> #P flonum 620 745 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 620 768 49 196617 ripple $1;
> #P number 278 657 35 9 0 4 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 278 676 45 196617 mode $1;
> #P number 413 658 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 413 676 48 196617 range $1;
> #P window linecount 5;
> #P comment 324 650 74 196617 0 = row ; 1 = column ; 2 = cross ; 3 =
> diagonal ; 4 = square ;;
> #P window linecount 1;
> #P newex 336 744 60 196617 jit.fastblur;
> #P message 441 249 20 196617 13;
> #P newex 886 629 29 196617 t b f;
> #P newex 871 434 71 196617 prepend set 1;
> #P message 919 594 25 196617 -10;
> #P newex 871 653 50 196617 accum 0.;
> #P flonum 871 674 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 919 573 65 196617 sel 102 103;
> #P message 951 594 20 196617 10;
> #P newex 919 552 40 196617 key;
> #P user multiSlider 871 456 27 166 0. 128. 1 2681 47 0 0 2 0 0 0;
> #M frgb 205 185 27;
> #M brgb 255 255 255;
> #M rgb2 127 127 127;
> #M rgb3 0 0 0;
> #M rgb4 37 52 91;
> #M rgb5 74 105 182;
> #M rgb6 241 227 122;
> #M rgb7 149 211 110;
> #M rgb8 187 9 201;
> #M rgb9 224 62 37;
> #M rgb10 7 114 128;
> #P window linecount 3;
> #P comment 900 467 100 196617 Control video mixing through slider with F
> and G;
> #B color 12;
> #P window linecount 1;
> #P message 607 477 29 196617 stop;
> #P newex 703 631 73 196617 prepend xfade;
> #P flonum 703 597 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 703 564 41 196617 * 0.01;
> #P newex 703 501 50 196617 line 0 50;
> #P newex 703 470 30 196617 pack;
> #P number 731 449 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P user hslider 703 428 18 128 102 1 0 0;
> #P user hslider 703 532 18 128 128 1 0 0;
> #P newex 562 147 49 196617 jit.xfade;
> #P comment 564 428 105 196617 Sourced Video;
> #P toggle 511 425 15 0;
> #P message 567 477 31 196617 close;
> #P message 564 458 75 196617 read craig.AVI;
> #P newex 511 458 46 196617 metro 2;
> #P user jit.pwindow 511 529 130 114 0 1 0 0 1 0;
> #P newex 512 497 105 196617 jit.qt.movie 720 576;
> #P user panel 498 417 503 293;
> #X brgb 191 191 191;
> #X frgb 0 0 0;
> #X border 1;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P newex 1042 -221 87 196617 jit.window ‘test’;
> #P message 941 -280 68 196617 fullscreen $1;
> #P toggle 924 -280 15 0;
> #P newex 966 -305 35 196617 sel 27;
> #P newex 924 -305 40 196617 key;
> #P user panel 913 -319 101 67;
> #X brgb 1 177 181;
> #X frgb 0 0 0;
> #X border 0;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P window linecount 2;
> #P comment 914 -249 100 196617 fullscreen: toggle with esc button;
> #P number 421 276 35 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P user jit.pwindow 356 -267 129 110 0 1 0 0 1 0;
> #P toggle 300 466 15 0;
> #P window linecount 1;
> #P message 270 481 14 196617 2;
> #P newex 245 444 48 196617 loadbang;
> #P newex 70 -223 151 196617 jit.scalebias @scale -1 @bias 1;
> #P number 147 400 35 9 0 2 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 147 420 45 196617 mode $1;
> #P number 187 448 35 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P number 147 448 35 9 0 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 187 471 29 196617 y $1;
> #P newex 51 522 30 196617 print;
> #P message 147 471 29 196617 x $1;
> #P newex 21 499 44 196617 jit.avg4;
> #B color 5;
> #P flonum 222 535 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 222 560 39 196617 lum $1;
> #P flonum 309 535 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 309 560 42 196617 fade $1;
> #P flonum 264 535 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 264 560 35 196617 tol $1;
> #P message 298 360 73 196617 moveto $1 $2;
> #P user ubumenu 199 387 60 196617 0 1 1 0;
> #X add Copy;
> #X add Or;
> #X add Xor;
> #X add Bic;
> #X add NotCopy;
> #X add NotOr;
> #X add NotXor;
> #X add NotBic;
> #X prefix_set 0 0 0;
> #P message 199 406 61 196617 penmode $1;
> #P user jit.pwindow 0 700 322 242 0 1 0 0 1 0;
> #P newex 189 621 61 196617 jit.lumakey;
> #P message 111 507 75 196617 read craig.AVI;
> #P newex 108 542 63 196617 jit.qt.movie;
> #P user jit.pwindow 22 618 82 62 0 1 0 0 1 0;
> #P newex 260 242 38 196617 r time;
> #P message 335 275 32 196617 reset;
> #P message 371 264 45 196617 color $1;
> #P number 371 245 35 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 323 247 31 196617 clear;
> #P message 212 356 65 196617 lineto $1 $2;
> #P message 419 304 71 196617 pensize $1 $1;
> #P user jit.pwindow 358 449 100 85 0 1 0 0 1 0;
> #P newex 268 407 111 196617 jit.lcd 4 char 320 240;
> #P flonum 267 323 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 221 325 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 218 280 64 196617 unpack 0. 0.;
> #P message 418 360 111 196617 paintoval $1 $2 50 50;
> #P flonum 1117 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 1117 236 39 196617 lum $1;
> #P flonum 1204 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 1204 236 42 196617 fade $1;
> #P flonum 1159 211 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 1159 236 35 196617 tol $1;
> #P message 1193 36 73 196617 moveto $1 $2;
> #P user ubumenu 1094 63 60 196617 0 1 1 0;
> #X add Copy;
> #X add Or;
> #X add Xor;
> #X add Bic;
> #X add NotCopy;
> #X add NotOr;
> #X add NotXor;
> #X add NotBic;
> #X prefix_set 0 0
0;
> #P message 1094 82 61 196617 penmode $1;
> #P newex 1084 297 61 196617 jit.lumakey;
> #P message 1020 156 30 196617 read;
> #P newex 1017 191 63 196617 jit.qt.movie;
> #P user jit.pwindow 1023 323 82 62 0 1 0 0 1 0;
> #P newex 1155 -82 38 196617 r time;
> #P newex 243 -260 38 196617 s time;
> #P message 1218 -60 32 196617 reset;
> #P message 1266 -60 45 196617 color $1;
> #P number 1266 -79 35 9 0 255 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 1218 -77 31 196617 clear;
> #P message 1107 32 65 196617 lineto $1 $2;
> #P number 1315 -48 35 9 1 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P message 1314 -20 71 196617 pensize $1 $1;
> #P user jit.pwindow 1303 167 162 122 0 1 0 0 1 0;
> #P newex 1163 83 111 196617 jit.lcd 4 char 320 240;
> #P flonum 1162 -1 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 1116 1 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P newex 1113 -44 64 196617 unpack 0. 0.;
> #P message 1313 36 111 196617 paintoval $1 $2 50 50;
> #P newex 371 -81 106 196617 cv.jit.centroids.draw;
> #P newex 70 -79 106 196617 cv.jit.centroids.draw;
> #P user jit.fpsgui 70 142 60 196617 0;
> #P newex 371 -128 78 196617 cv.jit.centroids;
> #P comment 451 -36 83 196617 Greyscale image;
> #B frgb 255 255 255;
> #P user jit.pwindow 370 -19 162 122 0 1 0 0 1 0;
> #P user panel 360 -42 184 154;
> #X brgb 140 140 140;
> #X frgb 0 0 0;
> #X border 0;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P flonum 198 -79 53 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P comment 263 -76 31 196617 Mass;
> #P window linecount 3;
> #P comment 249 -16 105 196617 Centroids change pictslider knob position.;
> #P window linecount 1;
> #P newex 70 -108 78 196617 cv.jit.centroids;
> #P newex 70 -192 64 196617 jit.rgb2luma;
> #P comment 165 -37 65 196617 Binary image;
> #B frgb 255 255 255;
> #P window linecount 3;
> #P comment 249 -190 105 196617 Change thresholding value to obtain a
> binary image;
> #P user jit.pwindow 69 -20 162 122 0 1 0 0 1 0;
> #P number 207 -184 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P window linecount 1;
> #P newex 70 -146 101 196617 jit.op @op > @val 50;
> #P user panel 203 -197 157 49;
> #X brgb 198 198 198;
> #X frgb 140 140 140;
> #X border 1;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P message 131 -263 44 196617 settings;
> #P comment 50 -317 105 196617 Use live camera input;
> #P message 112 -294 31 196617 close;
> #P message 81 -294 28 196617 open;
> #P toggle 28 -318 15 0;
> #P newex 28 -298 46 196617 metro 2;
> #P newex 28 -264 98 196617 jit.qt.grab 320 240;
> #P user panel 20 -329 162 94;
> #X brgb 140 140 140;
> #X frgb 0 0 0;
> #X border 0;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P user panel 59 -43 184 154;
> #X brgb 140 140 140;
> #X frgb 0 0 0;
> #X border 0;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P user panel 191 -86 108 30;
> #X brgb 210 210 195;
> #X frgb 140 140 140;
> #X border 1;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P comment 974 -94 100 196617 Greyscale tester;
> #B color 7;
> #P user panel 960 -106 550 516;
> #X brgb 224 229 69;
> #X frgb 0 0 0;
> #X border 1;
> #X rounded 0;
> #X shadow 0;
> #X done;
> #P connect 37 0 36 0;
> #P connect 34 0 48 0;
> #P connect 34 0 35 0;
> #P connect 40 0 41 0;
> #P connect 55 0 54 0;
> #P connect 26 0 29 0;
> #P connect 26 0 38 0;
> #P connect 26 0 31 0;
> #P connect 26 0 51 0;
> #P connect 38 0 34 0;
> #P connect 36 0 34 0;
> #P connect 42 0 34 0;
> #P connect 39 0 34 0;
> #P connect 41 0 34 0;
> #P connect 49 0 34 0;
> #P connect 30 0 34 0;
> #P connect 51 0 34 0;
> #P connect 44 0 46 0;
> #P connect 44 0 34 0;
> #P connect 31 1 33 0;
> #P connect 53 0 52 0;
> #P connect 46 0 45 0;
> #P connect 46 0 48 1;
> #P connect 57 0 56 0;
> #P connect 31 0 32 0;
> #P connect 50 0 49 0;
> #P connect 56 0 48 0;
> #P connect 52 0 48 0;
> #P connect 54 0 48 0;
> #P connect 114 0 105 0;
> #P connect 104 0 105 0;
> #P connect 47 0 46 0;
> #P fasten 101 0 102 0 965 -288 965 -303;
> #P connect 128 1 127 0;
> #P fasten 103 0 104 0 940 -265 940 -280;
> #P fasten 102 0 103 0 971 -283 929 -283;
> #P connect 128 0 131 0;
> #P connect 126 0 128 0;
> #P connect 133 1 130 1;
> #P connect 131 0 133 0;
> #P connect 127 0 133 0;
> #P connect 130 0 129 0;
> #P connect 125 0 130 0;
> #P connect 133 0 130 0;
> #P connect 132 0 125 0;
> #P connect 129 0 116 0;
> #P fasten 129 0 132 0 876 697 1010 697 1010 426 876 426;
> #P connect 117 0 118 1;
> #P connect 121 0 122 0;
> #P connect 120 0 121 0;
> #P connect 115 0 120 0;
> #P connect 119 0 115 0;
> #P connect 118 0 119 0;
> #P connect 116 0 118 0;
> #P connect 142 0 141 0;
> #P connect 153 0 142 0;
> #P connect 107 0 108 0;
> #P connect 107 0 114 1;
> #P connect 112 0 109 0;
> #P connect 112 0 110 0;
> #P connect 74 0 75 0;
> #P connect 74 0 114 0;
> #P connect 122 0 114 0;
> #P connect 145 0 144 0;
> #P connect 152 0 145 0;
> #P connect 111 0 107 0;
> #P connect 110 0 107 0;
> #P connect 109 0 107 0;
> #P connect 123 0 107 0;
> #P connect 148 0 149 0;
> #P hidden connect 148 0 151 0;
> #P connect 148 0 150 0;
> #P hidden connect 148 0 152 0;
> #P hidden connect 148 0 153 0;
> #P connect 18 0 13 0;
> #P fasten 18 0 26 0 75 -156 191 -156 191 -137 376 -137;
> #P fasten 18 0 29 1 75 -156 191 -156 191 -137 472 -137;
> #P connect 147 0 148 0;
> #P connect 154 0 134 0;
> #P connect 134 0 98 0;
> #P connect 98 0 64 0;
> #P connect 138 0 137 0;
> #P connect 146 0 143 0;
> #P connect 151 0 146 0;
> #P connect 67 0 68 0;
> #P connect 29 0 24 0;
> #P connect 62 0 85 0;
> #P connect 62 0 135 0;
> #P connect 62 0 63 0;
> #P connect 5 0 93 0;
> #P fasten 5 0 97 0 33 -228 211 -228 211 -293 362 -293;
> #P connect 139 0 135 0;
> #P connect 137 0 135 0;
> #P fasten 143 0 135 0 408 789 399 789 399 733 341 733;
> #P fasten 144 0 135 0 517 789 478 783 442 737 341 737;
> #P fasten 141 0 135 0 613 790 558 736 396 730;
> #P connect 82 0 81 0;
> #P connect 94 0 96 0;
> #P connect 19 0 28 0;
> #P connect 19 0 65 0;
> #P connect 19 0 59 0;
> #P connect 19 0 78 0;
> #P connect 140 0 139 0;
> #P connect 96 0 95 0;
> #P connect 156 0 158 0;
> #P connect 156 0 62 0;
> #P connect 70 0 72 0;
> #P connect 70 0 62 0;
> #P connect 78 0 62 0;
> #P connect 58 0 62 0;
> #P connect 76 0 62 0;
> #P connect 68 0 62 0;
> #P connect 66 0 62 0;
> #P connect 69 0 62 0;
> #P connect 64 0 62 0;
> #P connect 65 0 62 0;
> #P connect 59 1 61 0;
> #P connect 80 0 79 0;
> #P connect 163 0 164 0;
> #P connect 6 0 5 0;
> #P connect 6 0 43 0;
> #P connect 72 0 71 0;
> #P connect 72 0 74 1;
> #P connect 84 0 83 0;
> #P connect 59 0 60 0;
> #P connect 164 0 14 0;
> #P connect 77 0 76 0;
> #P fasten 19 1 22 0 109 -88 203 -88;
> #P connect 81 0 74 0;
> #P connect 79 0 74 0;
> #P connect 83 0 74 0;
> #P connect 135 0 74 0;
> #P connect 90 0 88 0;
> #P connect 95 0 89 0;
> #P connect 95 0 90 0;
> #P connect 13 0 19 0;
> #P fasten 13 0 28 1 75 -121 171 -121;
> #P fasten 14 0 13 1 212 -164 166 -164;
> #P connect 89 0 86 0;
> #P connect 92 0 91 0;
> #P connect 162 0 72 0;
> #P connect 73 0 72 0;
> #P connect 7 0 6 0;
> #P connect 7 0 8 0;
> #P connect 15 0 27 0;
> #P connect 28 0 15 0;
> #P connect 93 0 18 0;
> #P connect 159 0 161 0;
> #P connect 159 0 156 0;
> #P connect 157 0 156 0;
> #P connect 160 0 159 0;
> #P connect 85 1 87 0;
> #P fasten 9 0 5 0 117 -272 33 -272;
> #P fasten 8 0 5 0 86 -272 33 -272;
> #P hidden connect 11 0 5 0;
> #P fasten 86 0 85 0 152 492 26 492;
> #P fasten 88 0 85 0 192 492 26 492;
> #P fasten 91 0 85 0 152 438 26 438;
> #P window clipboard copycount 165;
>
>
> Cheers
>


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