aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_athreshold-help.pd
blob: 48dcb6c2fb1a48699dd7134aa84bd2baab6590ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#N canvas -29 149 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 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;
#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 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 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 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 49 0 19 0;
#X connect 50 0 19 0;
#X connect 51 0 19 0;
#X connect 52 0 49 0;