aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_athreshold-help.pd
diff options
context:
space:
mode:
authorN.N. <sevyves@users.sourceforge.net>2009-08-30 20:39:18 +0000
committerN.N. <sevyves@users.sourceforge.net>2009-08-30 20:39:18 +0000
commitf734109223cbe3d73e1728b4c93f8b4d413995b1 (patch)
tree6aeaf3d68cb64bcf1a91733ffd3877892ed1e156 /pix_opencv_athreshold-help.pd
parent98f00d5f6e0db2e39779e0ab2e05ce3b78209fa0 (diff)
added adaptive threshold
svn path=/trunk/externals/pix_opencv/; revision=12149
Diffstat (limited to 'pix_opencv_athreshold-help.pd')
-rwxr-xr-xpix_opencv_athreshold-help.pd122
1 files changed, 122 insertions, 0 deletions
diff --git a/pix_opencv_athreshold-help.pd b/pix_opencv_athreshold-help.pd
new file mode 100755
index 0000000..7e40898
--- /dev/null
+++ b/pix_opencv_athreshold-help.pd
@@ -0,0 +1,122 @@
+#N canvas 355 82 925 684 10;
+#X obj 277 -24 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;
+#N canvas 0 22 454 304 gemwin 0;
+#X obj 67 89 outlet;
+#X obj 67 10 inlet;
+#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;
+#X obj 118 46 loadbang;
+#X msg 118 81 reset;
+#X obj 118 113 outlet;
+#X connect 0 0 1 0;
+#X connect 1 0 2 0;
+#X restore 289 80 pd Gem.init;
+#X obj 162 241 gemwin;
+#X msg 161 188 create \, 1;
+#X msg 237 189 destroy;
+#X msg 283 161 frame 15;
+#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;
+#X connect 2 1 4 0;
+#X connect 2 1 8 0;
+#X connect 3 0 0 0;
+#X connect 4 0 0 0;
+#X connect 7 0 6 0;
+#X connect 8 0 6 0;
+#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
+-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
+-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 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 msg 187 58 colorspace Grey;
+#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 );
+#X text 365 362 CV_THRESH_BINARY : pixel >= threshold;
+#X text 393 384 CV_THRESH_BINARY_INV :pixel <= threshold;
+#X text 358 484 blocksize ( 1 \, 3 \, 5 \, 7 \, ... );
+#X text 393 498 ( default 3 );
+#X msg 273 308 0;
+#X msg 305 323 1;
+#X msg 240 345 method \$1;
+#X text 304 344 thresholding method ( default 0 );
+#X text 305 306 CV_ADAPTIVE_THRESH_MEAN_C : mean value;
+#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
+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 connect 0 0 19 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 26 0;
+#X connect 25 0 19 0;
+#X connect 26 0 1 0;
+#X connect 27 0 26 2;
+#X connect 28 0 26 0;
+#X connect 29 0 26 1;
+#X connect 31 0 28 0;
+#X connect 32 0 28 0;
+#X connect 38 0 40 0;
+#X connect 39 0 40 0;
+#X connect 40 0 26 0;
+#X connect 44 0 26 0;
+#X connect 45 0 44 0;