From 227cb58a93ca11037cb790a6ad02ba030b7c7072 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Thu, 20 Aug 2009 17:48:52 +0000 Subject: added adaptive threshold external svn path=/trunk/externals/pdp_opencv/; revision=12000 --- pdp_opencv_athreshold-help.pd | 97 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 pdp_opencv_athreshold-help.pd (limited to 'pdp_opencv_athreshold-help.pd') diff --git a/pdp_opencv_athreshold-help.pd b/pdp_opencv_athreshold-help.pd new file mode 100644 index 0000000..39319ed --- /dev/null +++ b/pdp_opencv_athreshold-help.pd @@ -0,0 +1,97 @@ +#N canvas 15 96 1039 729 10; +#X obj 11 -57 cnv 15 750 250 empty empty empty 20 12 0 14 -260097 -66577 +0; +#X obj 251 -17 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X obj 251 10 metro 40; +#X msg 341 37 close; +#X obj 271 108 pdp_v4l; +#X msg 328 5 open /dev/video0; +#X obj 440 -22 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 +1; +#X obj 440 5 metro 40; +#X msg 521 24 close; +#X msg 517 0 open /dev/video0; +#X obj 461 104 pdp_v4l2; +#X msg 526 79 format \$1; +#X obj 527 57 hradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1 +-1 0; +#X obj 41 158 pdp_qt; +#X obj 74 94 metro 40; +#X msg 74 66 bang; +#X msg 115 66 stop; +#X obj 41 -3 openpanel; +#X msg 41 22 open \$1; +#X msg 41 -31 bang; +#X msg 75 121 loop \$1; +#X obj 155 121 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 +1; +#X obj 155 39 loadbang; +#X text 84 -28 playing a video file; +#X text 281 -19 Camera input; +#X obj 101 159 hsl 128 15 0 500 0 0 empty empty empty -2 -8 0 10 -262144 +-1 -1 0 1; +#X obj 12 201 cnv 15 750 300 empty empty empty 20 12 0 14 -258113 -66577 +0; +#X obj 55 527 pdp_xv; +#X floatatom 230 447 5 0 0 0 - - -; +#X msg 198 321 mode \$1; +#X floatatom 175 419 5 0 0 0 - - -; +#X text 175 402 Max value used in some modes; +#X msg 233 280 0; +#X msg 263 300 1; +#X text 249 321 thresholding mode ( default 0 ); +#X text 14 -120 pdp_opencv_threshold : adaptive thresholding; +#X text 13 -74 written by Yves Degoyon ( ydegoyon@gmail.com ); +#X text 13 -109 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 obj 55 458 pdp_opencv_athreshold; +#X text 265 278 CV_THRESH_BINARY : pixel >= threshold; +#X text 293 300 CV_THRESH_BINARY_INV :pixel <= threshold; +#X text 228 433 blocksize ( 1 \, 3 \, 5 \, 7 \, ... ); +#X text 263 447 ( default 3 ); +#X msg 248 215 0; +#X msg 280 230 1; +#X msg 215 252 method \$1; +#X text 279 251 thresholding method ( default 0 ); +#X text 280 213 CV_ADAPTIVE_THRESH_MEAN_C : mean value; +#X text 312 230 CV_ADAPTIVE_THRESH_GAUSSIAN_C : gaussian mask; +#X msg 185 364 dim \$1; +#X floatatom 236 367 5 0 0 0 - - -; +#X text 276 365 value to correct the theshold; +#X connect 1 0 2 0; +#X connect 2 0 4 0; +#X connect 3 0 4 0; +#X connect 4 0 38 0; +#X connect 5 0 4 0; +#X connect 6 0 7 0; +#X connect 7 0 10 0; +#X connect 8 0 10 0; +#X connect 9 0 10 0; +#X connect 10 0 38 0; +#X connect 11 0 10 0; +#X connect 12 0 11 0; +#X connect 13 0 38 0; +#X connect 14 0 13 0; +#X connect 15 0 14 0; +#X connect 16 0 14 0; +#X connect 17 0 18 0; +#X connect 18 0 13 0; +#X connect 19 0 17 0; +#X connect 20 0 13 0; +#X connect 21 0 20 0; +#X connect 22 0 21 0; +#X connect 22 0 15 0; +#X connect 25 0 13 1; +#X connect 28 0 38 2; +#X connect 29 0 38 0; +#X connect 30 0 38 1; +#X connect 32 0 29 0; +#X connect 33 0 29 0; +#X connect 38 0 27 0; +#X connect 43 0 45 0; +#X connect 44 0 45 0; +#X connect 45 0 38 0; +#X connect 49 0 38 0; +#X connect 50 0 49 0; -- cgit v1.2.1