#N canvas 0 25 1680 940 10; #X obj 580 463 cnv 15 600 400 empty empty empty 20 12 0 14 -24198 -66577 0; #X obj 606 762 pix_opencv_hough_lines; #X obj 790 732 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X msg 705 730 nightmode \$1; #X text 809 733 set nightmode; #X floatatom 736 580 5 0 0 0 - - -; #X msg 635 546 mode \$1; #X obj 731 517 vradio 15 1 0 3 empty empty empty 0 -8 0 10 -262144 -1 -1 0; #X text 752 517 CV_HOUGH_STANDARD; #X text 752 531 CV_HOUGH_PROBABILISTIC; #X text 753 547 CV_HOUGN_MULTI_SCALE; #X msg 647 577 threshold \$1; #X msg 661 607 minlength \$1; #X floatatom 747 608 5 0 0 0 - - -; #X floatatom 727 634 5 0 0 0 - - -; #X msg 676 633 gap \$1; #X text 770 634 gap betwwen lines ( default 10 \, for mode CV_HOUGH_PROBABILISTIC ); #X text 784 605 minimum length ( default 30 \, for mode CV_HOUGH_PROBABILISTIC ); #X floatatom 781 672 5 0 0 0 - - -; #X floatatom 803 704 5 0 0 0 - - -; #X msg 680 670 aresolution \$1; #X text 847 700 distance resolution ( default 1 \, for mode CV_HOUGH_MULTI_SCALE ); #X text 819 669 angle resolution ( default 1 \, for mode CV_HOUGH_MULTI_SCALE ); #X msg 621 476 maxlines \$1; #X floatatom 700 477 5 0 0 0 - - -; #X text 741 473 maximum nuber of lines detected ( default : 10 ); #X text 775 576 threshold ( default 50 ); #X text 640 499 Detection mode ( default : CV_HOUGH_PROBABILISTIC ) ; #X floatatom 750 831 5 0 0 0 - - -; #X floatatom 786 832 5 0 0 0 - - -; #X obj 750 791 route 1 2 3 4 5 6 7 8 9 10; #X text 919 790 position of each line; #X obj 750 811 unpack f f f f; #X text 753 845 X1; #X text 789 845 Y1; #X floatatom 823 832 5 0 0 0 - - -; #X floatatom 859 833 5 0 0 0 - - -; #X text 826 846 X2; #X text 862 846 Y2; #X text 41 154 written by Lluis Gomez i Bigorda ( lluisgomez@hangar.org ) and Yves Degoyon ( ydegoyon@gmail.com ); #X text 40 139 pix_opencv_hough_lines : Hough lines algorithm; #X msg 698 702 dresolution \$1; #X obj 725 54 gemhead; #X obj 606 884 pix_texture; #X obj 606 903 square 2; #X obj 43 50 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 25; #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 53 94 pd gemwin; #X msg 53 76 create; #X obj 454 691 pix_texture; #X obj 454 719 square 2; #X obj 606 381 separator; #X obj 737 81 bng 25 250 50 0 load empty empty 0 -6 0 8 -262144 -1 -1; #X obj 794 256 bng 15 250 50 0 empty empty end_reached 20 7 0 10 -262144 -1 -1; #X floatatom 776 221 5 0 10000 1 frame# - -; #X obj 737 110 openpanel; #X msg 737 130 open \$1; #X obj 725 239 pix_film; #X msg 743 173 auto \$1; #X obj 743 155 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X text 51 56 Create window and render; #X msg 838 156 colorspace RGBA; #X msg 943 156 colorspace RGB; #X msg 1047 156 colorspace Grey; #X obj 838 128 loadbang; #X obj 605 352 pix_separator; #X obj 454 384 separator; #X obj 454 355 pix_separator; #X obj 454 419 translateXYZ -2 0 0; #X obj 606 416 translateXYZ 2 0 0; #N canvas 0 0 450 300 vswitch 0; #X obj 144 263 outlet; #X obj 36 26 inlet; #X obj 260 29 inlet; #X obj 36 133 spigot; #X obj 260 141 spigot; #X obj 119 64 loadbang; #X msg 83 93 0; #X msg 113 93 1; #X msg 296 104 0; #X msg 326 104 1; #X obj 399 34 inlet; #X obj 399 67 select 0; #X connect 1 0 3 0; #X connect 2 0 4 0; #X connect 3 0 0 0; #X connect 4 0 0 0; #X connect 5 0 7 0; #X connect 5 0 8 0; #X connect 6 0 3 1; #X connect 7 0 3 1; #X connect 8 0 4 1; #X connect 9 0 4 1; #X connect 10 0 11 0; #X connect 11 0 7 0; #X conne