aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_bgsubstract-help.pd
diff options
context:
space:
mode:
authorlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2009-09-18 16:28:27 +0000
committerlluís gómez i bigordà <lluisbigorda@users.sourceforge.net>2009-09-18 16:28:27 +0000
commitb7b82f9bd8cf4abe4eefd02e692aa68f10a192c9 (patch)
tree3a6621d86cff2ed888dee1afecc03742fa2d8525 /pix_opencv_bgsubstract-help.pd
parent85d2780b2b47a729612ea9ac061600bf663ca7e5 (diff)
some improvements in the help patches
svn path=/trunk/externals/pix_opencv/; revision=12395
Diffstat (limited to 'pix_opencv_bgsubstract-help.pd')
-rw-r--r--pix_opencv_bgsubstract-help.pd211
1 files changed, 128 insertions, 83 deletions
diff --git a/pix_opencv_bgsubstract-help.pd b/pix_opencv_bgsubstract-help.pd
index b3ed1bc..5b8e040 100644
--- a/pix_opencv_bgsubstract-help.pd
+++ b/pix_opencv_bgsubstract-help.pd
@@ -1,13 +1,33 @@
-#N canvas -7 146 691 547 10;
-#X obj 618 -33 gemhead;
-#X obj 364 374 pix_texture;
-#X obj 364 402 square 2;
-#X obj 20 165 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
+#N canvas 719 162 938 771 10;
+#X obj 568 529 cnv 15 255 67 empty empty empty 20 12 0 14 -24198 -66577
+0;
+#X floatatom 751 569 5 0 0 0 - - -;
+#X obj 586 570 pix_opencv_bgsubstract;
+#X msg 694 536 set;
+#X text 730 536 set the background;
+#X text 794 568 threshold (default 13);
+#X text 22 244 This object takes an image as a background reference
+and the compare each incomming frame with that. On the output you get
+a bw image \, black pixels are considered as background and white poixels
+as foreground.;
+#X text 23 152 pix_opencv_bgsubstract :: A simple background substract
+and binarization object.;
+#X text 22 197 It is useful if you want to detect objects that are
+in front of an static background and you want to isolate the foreground
+silhouete of the foreground objects.;
+#X text 22 305 pix_opencv_bgsubstract works comparing color values
+of each pixel \, so it can fail if the foreground object has the same
+color that the background \, and also if the light conditions or the
+shadows changes since you SET the background image.;
+#X obj 705 34 gemhead;
+#X obj 586 675 pix_texture;
+#X obj 586 694 square 2;
+#X obj 23 30 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 454 304 gemwin 0;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
-#X obj 67 41 route create;
+#X obj 65 41 route create;
#X msg 67 70 set destroy;
#X msg 182 68 set create;
#N canvas 87 154 247 179 Gem.init 0;
@@ -17,11 +37,11 @@
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X restore 289 80 pd Gem.init;
-#X obj 192 276 gemwin;
-#X msg 191 223 create \, 1;
-#X msg 267 224 destroy;
-#X msg 313 196 frame 5;
-#X obj 194 186 t b b b;
+#X obj 162 241 gemwin;
+#X msg 161 188 create \, 1;
+#X msg 237 189 destroy;
+#X msg 283 161 frame 5;
+#X obj 164 126 t b b b;
#X connect 1 0 2 0;
#X connect 2 0 3 0;
#X connect 2 0 10 0;
@@ -34,79 +54,104 @@
#X connect 9 0 6 0;
#X connect 10 0 7 0;
#X connect 10 2 9 0;
-#X restore 25 209 pd gemwin;
-#X msg 25 185 destroy;
-#X text 21 165 Create window and render;
-#X obj 200 368 pix_texture;
-#X obj 200 396 square 2;
-#X obj 266 167 translateXYZ -2 0 0;
-#X obj 367 224 separator;
-#X obj 346 281 cnv 15 255 67 empty empty empty 20 12 0 14 -24198 -66577
-0;
-#X obj 511 -66 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
+#X restore 33 74 pd gemwin;
+#X msg 33 56 create;
+#X obj 434 671 pix_texture;
+#X obj 434 699 square 2;
+#X obj 586 361 separator;
+#X obj 717 61 bng 25 250 50 0 load empty empty 0 -6 0 8 -262144 -1
-1;
-#X obj 524 128 unpack 0 0 0;
-#X floatatom 514 151 5 0 0 3 length - -;
-#X floatatom 563 151 5 0 0 3 width - -;
-#X floatatom 613 151 5 0 0 3 height - -;
-#X obj 568 109 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
+#X obj 774 236 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144
-1 -1;
-#X floatatom 572 92 5 0 10000 1 frame# - -;
-#X obj 511 -37 openpanel;
-#X msg 511 -17 open \$1;
-#X obj 499 92 pix_film;
-#X msg 517 26 auto \$1;
-#X obj 517 8 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
-;
-#X obj 364 259 translateXYZ 4 0 0;
-#X floatatom 529 321 5 0 0 0 - - -;
-#X obj 364 322 pix_opencv_bgsubstract;
-#X msg 472 288 set;
-#X text 508 288 set the background;
-#X text 572 320 threshold (default 13);
-#X text 26 -2 This object takes an image as a background reference
-and the compare each incomming frame with that. On the output you get
-a bw image \, black pixels are considered as background and white poixels
-as foreground.;
-#X text 27 -94 pix_opencv_bgsubstract :: A simple background substract
-and binarization object.;
-#X text 26 -49 It is useful if you want to detect objects that are
-in front of an static background and you want to isolate the foreground
-silhouete of the foreground objects.;
-#X text 26 59 pix_opencv_bgsubstract works comparing color values of
-each pixel \, so it can fail if the foreground object has the same
-color that the background \, and also if the light conditions or the
-shadows changes since you SET the background image.;
-#X msg 561 47 colorspace RGBA;
-#X obj 584 20 loadbang;
-#X msg 678 45 colorspace RGB;
-#X msg 778 45 colorspace Grey;
-#X connect 0 0 21 0;
-#X connect 1 0 2 0;
-#X connect 4 0 5 0;
-#X connect 5 0 4 0;
-#X connect 7 0 8 0;
-#X connect 9 0 7 0;
-#X connect 9 0 10 0;
+#X floatatom 756 201 5 0 10000 1 frame# - -;
+#X obj 717 90 openpanel;
+#X msg 717 110 open \$1;
+#X obj 705 219 pix_film;
+#X msg 723 153 auto \$1;
+#X obj 723 135 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
+1;
+#X text 31 36 Create window and render;
+#X msg 818 136 colorspace RGBA;
+#X msg 923 136 colorspace RGB;
+#X msg 1027 136 colorspace Grey;
+#X obj 818 108 loadbang;
+#X obj 585 332 pix_separator;
+#X obj 434 364 separator;
+#X obj 434 335 pix_separator;
+#X obj 434 399 translateXYZ -2 0 0;
+#X obj 586 396 translateXYZ 2 0 0;
+#N canvas 0 0 450 300 vswitch 0;
+#X obj 144 263 outlet;
+#X obj 36 26 inlet;
+#X obj 260 29 inlet;
+#X obj 36 133 spigot;
+#X obj 260 141 spigot;
+#X obj 119 64 loadbang;
+#X msg 83 93 0;
+#X msg 113 93 1;
+#X msg 296 104 0;
+#X msg 326 104 1;
+#X obj 399 34 inlet;
+#X obj 399 67 select 0;
+#X connect 1 0 3 0;
+#X connect 2 0 4 0;
+#X connect 3 0 0 0;
+#X connect 4 0 0 0;
+#X connect 5 0 7 0;
+#X connect 5 0 8 0;
+#X connect 6 0 3 1;
+#X connect 7 0 3 1;
+#X connect 8 0 4 1;
+#X connect 9 0 4 1;
+#X connect 10 0 11 0;
+#X connect 11 0 7 0;
+#X connect 11 0 8 0;
+#X connect 11 1 9 0;
+#X connect 11 1 6 0;
+#X restore 527 289 pd vswitch;
+#X obj 595 289 tgl 15 0 empty load empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X obj 468 217 pix_video;
+#X obj 468 29 gemhead;
+#X msg 507 142 device 0;
+#X msg 516 173 driver 1;
+#X msg 493 88 dialog;
+#X msg 498 118 device /dev/dv1394-0;
+#X connect 1 0 2 1;
+#X connect 2 0 11 0;
+#X connect 3 0 2 0;
#X connect 10 0 24 0;
-#X connect 12 0 19 0;
-#X connect 13 0 14 0;
-#X connect 13 1 15 0;
-#X connect 13 2 16 0;
-#X connect 17 0 18 0;
-#X connect 18 0 21 1;
-#X connect 19 0 20 0;
+#X connect 11 0 12 0;
+#X connect 14 0 15 0;
+#X connect 15 0 14 0;
+#X connect 16 0 17 0;
+#X connect 18 0 36 0;
+#X connect 19 0 22 0;
#X connect 20 0 21 0;
-#X connect 21 0 9 0;
-#X connect 21 1 13 0;
-#X connect 21 2 17 0;
-#X connect 22 0 21 0;
-#X connect 23 0 22 0;
-#X connect 24 0 26 0;
-#X connect 25 0 26 1;
-#X connect 26 0 1 0;
-#X connect 27 0 26 0;
-#X connect 34 0 21 0;
-#X connect 35 0 34 0;
-#X connect 36 0 21 0;
-#X connect 37 0 21 0;
+#X connect 21 0 24 1;
+#X connect 22 0 23 0;
+#X connect 23 0 24 0;
+#X connect 24 0 37 1;
+#X connect 24 2 20 0;
+#X connect 25 0 24 0;
+#X connect 26 0 25 0;
+#X connect 28 0 24 0;
+#X connect 28 0 39 0;
+#X connect 29 0 24 0;
+#X connect 30 0 24 0;
+#X connect 31 0 28 0;
+#X connect 31 0 26 0;
+#X connect 32 0 18 0;
+#X connect 33 0 35 0;
+#X connect 34 0 33 0;
+#X connect 35 0 16 0;
+#X connect 36 0 2 0;
+#X connect 37 0 32 0;
+#X connect 37 0 34 0;
+#X connect 38 0 37 2;
+#X connect 39 0 37 0;
+#X connect 40 0 39 0;
+#X connect 41 0 39 0;
+#X connect 42 0 39 0;
+#X connect 43 0 39 0;
+#X connect 44 0 39 0;