#N canvas 41 167 1154 642 10; #X obj 396 -37 gemhead; #X obj 369 497 pix_texture; #X obj 371 518 square 2; #X obj 9 -28 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 67 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 160 260 gemwin; #X msg 159 207 create \, 1; #X msg 235 208 destroy; #X msg 281 180 frame 5; #X obj 162 170 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 14 16 pd gemwin; #X msg 14 -8 destroy; #X text 12 -26 Create window and render; #X obj 216 478 pix_texture; #X obj 216 506 square 2; #X obj 364 112 translateXYZ -2 0 0; #X obj 365 138 separator; #X obj 344 187 cnv 15 600 300 empty empty empty 20 12 0 14 -24198 -66577 0; #X obj 511 -66 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 524 128 unpack 0 0 0; #X floatatom 514 151 5 0 0 3 length - -; #X floatatom 563 151 5 0 0 3 width - -; #X floatatom 613 151 5 0 0 3 height - -; #X obj 568 109 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144 -1 -1; #X floatatom 550 74 5 0 10000 1 frame# - -; #X obj 511 -37 openpanel; #X msg 511 -17 open \$1; #X obj 499 92 pix_film; #X msg 517 26 auto \$1; #X obj 517 8 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 366 163 translateXYZ 4 0 0; #X obj 580 26 loadbang; #X msg 580 51 colorspace RGBA; #X obj 372 389 pix_opencv_hough_circles; #X obj 615 355 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X msg 530 353 nightmode \$1; #X text 634 356 set nightmode; #X floatatom 553 230 5 0 0 0 - - -; #X msg 464 227 threshold \$1; #X floatatom 598 307 5 0 0 0 - - -; #X floatatom 617 332 5 0 0 0 - - -; #X floatatom 539 201 5 0 0 0 - - -; #X msg 449 200 maxcircles \$1; #X text 579 200 maximum nuber of circles detected ( default : 10 ) ; #X floatatom 575 258 5 0 0 0 - - -; #X msg 487 257 threshold2 \$1; #X text 614 270 see documentation of cvHoughCircles for the meaning of thresholds; #X msg 512 306 mindist \$1; #X text 635 305 minimum distance between circles ( default : 30 ); #X msg 517 330 resolution \$1; #X text 660 331 detector resolution ( default 1 ); #X text 592 226 threshold ( default 100 ); #X text 614 253 threshold2 ( default 10 ); #X floatatom 542 458 5 0 0 0 - - -; #X floatatom 578 459 5 0 0 0 - - -; #X obj 542 418 route 1 2 3 4 5 6 7 8 9 10; #X text 545 472 X1; #X text 581 472 Y1; #X floatatom 615 459 5 0 0 0 - - -; #X text 711 418 position of each circle; #X text 618 473 radius; #X obj 542 439 unpack f f f; #X text 9 -66 written by Lluis Gomez i Bigorda ( lluisgomez@hangar.org ) and Yves Degoyon ( ydegoyon@gmail.com ); #X text 9 -81 pix_opencv_hough_circles : Hough circles detection algorithm ; #X msg 685 51 colorspace RGB; #X msg 789 51 colorspace Grey; #X connect 0 0 21 0; #X connect 1 0 2 0; #X connect 4 0 5 0; #X connect 5 0 4 0; #X connect 7 0 8 0; #X connect 9 0 7 0; #X connect 9 0 10 0; #X connect 10 0 24 0; #X connect 12 0 19 0; #X connect 13 0 14 0; #X connect 13 1 15 0; #X connect 13 2 16 0; #X connect 17 0 18 0; #X connect 18 0 21 1; #X connect 19 0 20 0; #X connect 20 0 21 0; #X connect 21 0 9 0; #X connect 21 1 13 0; #X connect 21 2 17 0; #X connect 22 0 21 0; #X connect 23 0 22 0; #X connect 24 0 27 0; #X connect 25 0 26 0; #X connect 26 0 21 0; #X connect 27 0 1 0; #X connect 27 1 49 0; #X connect 28 0 29 0; #X connect 29 0 27 0; #X connect 31 0 32 0; #X connect 32 0 27 0; #X connect 33 0 41 0; #X connect 34 0 43 0; #X connect 35 0 36 0; #X connect 36 0 27 0; #X connect 38 0 39 0; #X connect 39 0 27 0; #X connect 41 0 27 0; #X connect 43 0 27 0; #X connect 49 0 55 0; #X connect 55 0 47 0; #X connect 55 1 48 0; #X connect 55 2 52 0; #X connect 58 0 21 0; #X connect 59 0 21 0;