#N canvas 61 45 828 681 10; #X obj -11 292 cnv 15 600 100 empty empty empty 20 12 0 14 -196506 -66577 0; #X obj 137 157 cnv 15 600 120 empty empty empty 20 12 0 14 -196506 -66577 0; #X msg 190 180 reset; #X obj 164 213 pix_background; #X msg 258 188 \$1 \$1 \$1; #X floatatom 258 172 5 0 1 0 - - -; #X obj 230 90 separator; #X obj 337 34 gemhead 10; #X msg 53 41 create \, 1; #X text 256 158 Set noise threshold; #X msg 74 60 0 \, destroy; #X msg 6 22 dimen 300 300; #X obj 55 84 gemwin 10; #X msg 48 306 3; #X msg 83 308 1; #X msg 17 306 4; #X text 159 260 It subtracts the background from an incoming video image.; #X text 160 235 it removes the background of an image by comparing a static image in memory to an incoming video stream.; #X text 133 298 It does the tracking. It tries to find the center and size of the white pixels in an image. If it is sent the output of "pix_background" then it only attempts to track the center and size of the foreground. ; #X text 321 175 threshold is filter. Any pixel above the value is passed. Any pixel below the value is zeroed out.; #X text 276 205 RGB; #X floatatom 110 368 5 0 0 0 - - -; #X floatatom 153 368 5 0 0 0 - - -; #X floatatom 196 369 5 0 0 0 - - -; #X obj -12 401 pix_texture; #X obj 166 552 translateXYZ; #X obj 165 422 * 8; #X obj 165 444 - 4; #X obj 210 420 * 8; #X obj 210 442 - 4; #X msg 243 582 0 0 0; #X obj 164 593 colour; #X msg 244 608 1 1 1; #X text 289 584 black; #X text 286 610 white; #X obj 109 515 gemhead 15; #X obj 159 637 square 0.1; #X obj 83 566 loadbang; #X msg 83 588 draw line; #X msg 82 613 width \$1; #X obj 266 447 int; #X obj 252 419 * 10; #X obj 267 471 + 1; #X text 198 350 0-1; #X text 119 352 X; #X text 165 352 y; #X floatatom 166 468 5 0 0 0 - - -; #X floatatom 223 471 5 0 0 0 - - -; #X obj 32 336 pix_blob; #X obj -12 472 square 2; #X floatatom 74 402 5 0 0 0 - - -; #X floatatom 105 417 5 0 0 0 - - -; #X obj -12 435 translateXYZ 0 0 0; #X text 441 603 2006_Koray Tahiroglu; #X text 443 620 modified from the original patch by Ben Bogart; #X text 133 15 with pix_background; #X text 130 1 A MOMENT DETECTOR - video file; #X obj 229 110 pix_rgba; #X obj 638 90 separator; #X obj 638 111 pix_texture; #X obj 638 132 square 4; #X text 637 72 Render source video; #X obj 403 0 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 364 95 unpack 0 0 0; #X floatatom 358 119 5 0 0 3 length - -; #X floatatom 407 119 5 0 0 3 width - -; #X obj 460 98 bng 15 250 50 0 empty empty end_of_the_movie 20 7 0 10 -262144 -1 -1; #X floatatom 467 73 5 0 10000 1 frame - -; #X obj 433 23 openpanel; #X msg 433 43 open \$1; #X obj 384 74 pix_film; #X msg 509 45 auto \$1; #X obj 513 23 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X floatatom 452 118 5 0 0 3 height - -; #X connect 2 0 3 0; #X connect 3 0 48 0; #X connect 4 0 3 1; #X connect 5 0 4 0; #X connect 6 0 57 0; #X connect 7 0 70 0; #X connect 8 0 12 0; #X connect 10 0 12 0; #X connect 11 0 12 0; #X connect 13 0 48 1; #X connect 14 0 48 1; #X connect 15 0 48 1; #X connect 21 0 26 0; #X connect 22 0 28 0; #X connect 23 0 41 0; #X connect 24 0 52 0; #X connect 25 0 31 0; #X connect 26 0 27 0; #X connect 27 0 46 0; #X connect 28 0 29 0; #X connect 29 0 47 0; #X connect 30 0 31 1; #X connect 31 0 36 0; #X connect 32 0 31 1; #X connect 35 0 25 0; #X connect 37 0 38 0; #X connect 38 0 36 0; #X connect 39 0 36 0; #X connect 40 0 42 0; #X connect 41 0 40 0; #X connect 41 0 39 0; #X connect 42 0 36 1; #X connect 46 0 25 1; #X connect 47 0 25 2; #X connect 48 0 24 0; #X connect 48 1 21 0; #X connect 48 2 22 0; #X connect 48 3 23 0; #X connect 50 0 52 1; #X connect 51 0 52 2; #X connect 52 0 49 0; #X connect 57 0 3 0; #X connect 58 0 59 0; #X connect 59 0 60 0; #X connect 62 0 68 0; #X connect 63 0 64 0; #X connect 63 1 65 0; #X connect 63 2 73 0; #X connect 67 0 70 1; #X connect 68 0 69 0; #X connect 69 0 70 0; #X connect 70 0 58 0; #X connect 70 0 6 0; #X connect 70 1 63 0; #X connect 70 2 66 0; #X connect 71 0 70 0; #X connect 72 0 71 0;