#N canvas 575 65 668 599 10; #X obj 101 158 pdp_xv; #X obj 101 -2 pdp_qt; #X obj 134 -66 metro 40; #X msg 134 -94 bang; #X msg 175 -94 stop; #X obj 101 -163 openpanel; #X msg 101 -138 open \$1; #X msg 101 -191 bang; #X msg 135 -39 loop \$1; #X obj 215 -39 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1; #X floatatom 276 106 5 0 0 0 - - -; #X obj 215 -121 loadbang; #X text 170 -196 1 first load a video file; #X obj 342 -2 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X msg 263 43 shape 2; #X msg 253 23 shape 1; #X msg 273 62 shape 3; #X msg 251 -2 mode \$1; #X text 310 24 use rectangle structuring element; #X text 328 59 use cross-shaped structuring element; #X text 322 41 use elliptic structuring element; #X obj 101 99 pdp_opencv_morphology; #X text 361 -2 switch open/close and erode/dilate modes; #X text 315 107 number of iterations -10/+10 (be carefull \; ); #X connect 1 0 21 0; #X connect 2 0 1 0; #X connect 3 0 2 0; #X connect 4 0 2 0; #X connect 5 0 6 0; #X connect 6 0 1 0; #X connect 7 0 5 0; #X connect 8 0 1 0; #X connect 9 0 8 0; #X connect 10 0 21 1; #X connect 11 0 9 0; #X connect 11 0 3 0; #X connect 13 0 17 0; #X connect 14 0 21 0; #X connect 15 0 21 0; #X connect 16 0 21 0; #X connect 17 0 21 0; #X connect 21 0 0 0;