diff options
Diffstat (limited to 'pix_opencv_athreshold-help.pd')
-rw-r--r-- | pix_opencv_athreshold-help.pd | 175 |
1 files changed, 110 insertions, 65 deletions
diff --git a/pix_opencv_athreshold-help.pd b/pix_opencv_athreshold-help.pd index 48dcb6c..8dbd935 100644 --- a/pix_opencv_athreshold-help.pd +++ b/pix_opencv_athreshold-help.pd @@ -1,9 +1,9 @@ -#N canvas -29 149 925 684 10; -#X obj 277 -24 gemhead; +#N canvas 550 25 1113 920 10; +#X obj 300 -86 gemhead; #X obj 183 555 pix_texture; #X obj 183 574 square 2; -#X obj 554 196 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577 -0; +#X obj -300 -52 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; @@ -34,36 +34,29 @@ #X connect 9 0 6 0; #X connect 10 0 7 0; #X connect 10 2 9 0; -#X restore 564 240 pd gemwin; -#X msg 564 222 destroy; -#X obj 29 508 pix_texture; -#X obj 29 536 square 2; -#X obj 158 168 translateXYZ -2 0 0; -#X obj 182 239 separator; -#X obj 170 -57 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +#X restore -290 -8 pd gemwin; +#X msg -290 -26 create; +#X obj 29 551 pix_texture; +#X obj 29 579 square 2; +#X obj 181 241 separator; +#X obj 312 -59 bng 25 250 50 0 load empty empty 0 -6 0 8 -262144 -1 -1; -#X obj 337 144 unpack 0 0 0; -#X floatatom 327 167 5 0 0 3 length - -; -#X floatatom 376 167 5 0 0 3 width - -; -#X floatatom 426 167 5 0 0 3 height - -; -#X obj 227 118 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144 +#X obj 369 116 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144 -1 -1; -#X floatatom 209 83 5 0 10000 1 frame# - -; -#X obj 170 -28 openpanel; -#X msg 170 -8 open \$1; -#X obj 158 101 pix_film; -#X msg 176 35 auto \$1; -#X obj 176 17 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 +#X floatatom 351 81 5 0 10000 1 frame# - -; +#X obj 312 -30 openpanel; +#X msg 312 -10 open \$1; +#X obj 300 99 pix_film; +#X msg 318 33 auto \$1; +#X obj 318 15 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 ; -#X obj 181 276 translateXYZ 4 0 0; #X obj 178 299 cnv 15 600 250 empty empty empty 20 12 0 14 -4034 -66577 0; -#X text 562 202 Create window and render; +#X text -292 -46 Create window and render; #X obj 183 508 pix_opencv_athreshold; #X floatatom 360 498 5 0 0 0 - - -; #X msg 298 405 mode \$1; #X floatatom 318 472 5 0 0 0 - - -; -#X text 318 458 Max value used in some modes; #X msg 333 364 0; #X msg 363 384 1; #X text 349 405 thresholding mode ( default 0 ); @@ -79,50 +72,102 @@ #X text 337 323 CV_ADAPTIVE_THRESH_GAUSSIAN_C : gaussian mask; #X msg 319 427 dim \$1; #X floatatom 370 430 5 0 0 0 - - -; -#X text 410 428 value to correct the theshold; -#X text 399 86 written by Yves Degoyon ( ydegoyon@gmail.com ); -#X text 399 51 use the average of pixels in the block of pixels to +#X text -304 77 written by Yves Degoyon ( ydegoyon@gmail.com ); +#X text -304 42 use the average of pixels in the block of pixels to filter only the pixels above or below that threshold \, depending on the mode BINARY or BINARY:INVERTED; -#X text 400 40 pix_opencv_threshold : adaptive thresholding; -#X msg 271 18 colorspace RGBA; -#X msg 376 18 colorspace RGB; -#X msg 480 18 colorspace Grey; -#X obj 277 -2 loadbang; -#X connect 0 0 19 0; +#X text -303 31 pix_opencv_threshold : adaptive thresholding; +#X msg 413 16 colorspace RGBA; +#X msg 518 16 colorspace RGB; +#X msg 622 16 colorspace Grey; +#X obj 413 -12 loadbang; +#X obj 180 212 pix_separator; +#X obj 29 244 separator; +#X obj 29 215 pix_separator; +#X obj 29 279 translateXYZ -2 0 0; +#X obj 181 276 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 122 169 pd vswitch; +#X obj 190 169 tgl 15 0 empty load empty 17 7 0 10 -262144 -1 -1 0 +1; +#X obj 63 97 pix_video; +#X obj 63 -91 gemhead; +#X msg 102 22 device 0; +#X msg 111 53 driver 1; +#X msg 88 -32 dialog; +#X msg 93 -2 device /dev/dv1394-0; +#X text 318 458 Max value used in some modes ( 0 - 255); +#X text 410 428 value to correct the theshold; +#X connect 0 0 14 0; #X connect 1 0 2 0; #X connect 4 0 5 0; #X connect 5 0 4 0; #X connect 6 0 7 0; -#X connect 8 0 6 0; -#X connect 8 0 9 0; -#X connect 9 0 22 0; -#X connect 10 0 17 0; -#X connect 11 0 12 0; -#X connect 11 1 13 0; -#X connect 11 2 14 0; -#X connect 15 0 16 0; -#X connect 16 0 19 1; -#X connect 17 0 18 0; -#X connect 18 0 19 0; -#X connect 19 0 8 0; -#X connect 19 1 11 0; -#X connect 19 2 15 0; -#X connect 20 0 19 0; -#X connect 21 0 20 0; -#X connect 22 0 25 0; -#X connect 25 0 1 0; -#X connect 26 0 25 2; -#X connect 27 0 25 0; -#X connect 28 0 25 1; -#X connect 30 0 27 0; -#X connect 31 0 27 0; -#X connect 37 0 39 0; -#X connect 38 0 39 0; -#X connect 39 0 25 0; -#X connect 43 0 25 0; -#X connect 44 0 43 0; +#X connect 8 0 49 0; +#X connect 9 0 12 0; +#X connect 10 0 11 0; +#X connect 11 0 14 1; +#X connect 12 0 13 0; +#X connect 13 0 14 0; +#X connect 14 0 50 1; +#X connect 14 2 10 0; +#X connect 15 0 14 0; +#X connect 16 0 15 0; +#X connect 19 0 1 0; +#X connect 20 0 19 2; +#X connect 21 0 19 0; +#X connect 22 0 19 1; +#X connect 23 0 21 0; +#X connect 24 0 21 0; +#X connect 30 0 32 0; +#X connect 31 0 32 0; +#X connect 32 0 19 0; +#X connect 36 0 19 0; +#X connect 37 0 36 0; +#X connect 41 0 14 0; +#X connect 41 0 52 0; +#X connect 42 0 14 0; +#X connect 43 0 14 0; +#X connect 44 0 41 0; +#X connect 44 0 16 0; +#X connect 45 0 8 0; +#X connect 46 0 48 0; +#X connect 47 0 46 0; +#X connect 48 0 6 0; #X connect 49 0 19 0; -#X connect 50 0 19 0; -#X connect 51 0 19 0; -#X connect 52 0 49 0; +#X connect 50 0 45 0; +#X connect 50 0 47 0; +#X connect 51 0 50 2; +#X connect 52 0 50 0; +#X connect 53 0 52 0; +#X connect 54 0 52 0; +#X connect 55 0 52 0; +#X connect 56 0 52 0; +#X connect 57 0 52 0; |