#N canvas 110 22 828 681 10; #X obj -11 263 cnv 15 600 100 empty empty empty 20 12 0 14 -196506 -66577 0; #X obj 137 128 cnv 15 600 120 empty empty empty 20 12 0 14 -196506 -66577 0; #X msg 190 151 reset; #X obj 164 184 pix_background; #X msg 258 159 \$1 \$1 \$1; #X floatatom 258 143 5 0 1 0 - - -; #X obj 480 62 separator; #X obj 480 83 pix_texture; #X obj 479 104 square 4; #X obj 230 63 separator; #X obj 372 5 gemhead 10; #X obj 372 26 pix_video; #X msg 53 32 create \, 1; #X text 256 129 Set noise threshold; #X text 481 42 Render source video; #X msg 74 51 0 \, destroy; #X msg 6 13 dimen 300 300; #X obj 55 75 gemwin 10; #X msg 48 277 3; #X msg 83 279 1; #X msg 17 277 4; #X obj 230 84 pix_grey; #X text 159 231 It subtracts the background from an incoming video image.; #X text 160 206 it removes the background of an image by comparing a static image in memory to an incoming video stream.; #X text 133 269 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 146 threshold is filter. Any pixel above the value is passed. Any pixel below the value is zeroed out.; #X text 276 176 RGB; #X floatatom 110 339 5 0 0 0 - - -; #X floatatom 153 339 5 0 0 0 - - -; #X floatatom 196 340 5 0 0 0 - - -; #X obj -12 372 pix_texture; #X obj 166 523 translateXYZ; #X obj 165 393 * 8; #X obj 165 415 - 4; #X obj 210 391 * 8; #X obj 210 413 - 4; #X msg 243 553 0 0 0; #X obj 164 564 colour; #X msg 244 579 1 1 1; #X text 289 555 black; #X text 286 581 white; #X obj 109 486 gemhead 15; #X obj 159 608 square 0.1; #X obj 83 537 loadbang; #X msg 83 559 draw line; #X msg 82 584 width \$1; #X obj 266 418 int; #X obj 252 390 * 10; #X obj 267 442 + 1; #X text 198 321 0-1; #X text 119 323 X; #X text 165 323 y; #X floatatom 166 439 5 0 0 0 - - -; #X floatatom 223 442 5 0 0 0 - - -; #X obj 32 307 pix_blob; #X obj -12 443 square 2; #X floatatom 74 373 5 0 0 0 - - -; #X floatatom 105 388 5 0 0 0 - - -; #X obj -12 406 translateXYZ 0 0 0; #X obj 372 47 t a a; #X text 441 574 2006_Koray Tahiroglu; #X text 443 591 modified from the original patch by Ben Bogart; #X text 133 15 with pix_background; #X text 130 -1 A MOMENT DETECTOR - live video; #X connect 2 0 3 0; #X connect 3 0 54 0; #X connect 4 0 3 1; #X connect 5 0 4 0; #X connect 6 0 7 0; #X connect 7 0 8 0; #X connect 9 0 21 0; #X connect 10 0 11 0; #X connect 11 0 59 0; #X connect 12 0 17 0; #X connect 15 0 17 0; #X connect 16 0 17 0; #X connect 18 0 54 1; #X connect 19 0 54 1; #X connect 20 0 54 1; #X connect 21 0 3 0; #X connect 27 0 32 0; #X connect 28 0 34 0; #X connect 29 0 47 0; #X connect 30 0 58 0; #X connect 31 0 37 0; #X connect 32 0 33 0; #X connect 33 0 52 0; #X connect 34 0 35 0; #X connect 35 0 53 0; #X connect 36 0 37 1; #X connect 37 0 42 0; #X connect 38 0 37 1; #X connect 41 0 31 0; #X connect 43 0 44 0; #X connect 44 0 42 0; #X connect 45 0 42 0; #X connect 46 0 48 0; #X connect 47 0 46 0; #X connect 47 0 45 0; #X connect 48 0 42 1; #X connect 52 0 31 1; #X connect 53 0 31 2; #X connect 54 0 30 0; #X connect 54 1 27 0; #X connect 54 2 28 0; #X connect 54 3 29 0; #X connect 56 0 58 1; #X connect 57 0 58 2; #X connect 58 0 55 0; #X connect 59 0 6 0; #X connect 59 1 9 0;