From 30cc97ee54a7d91d4a1c0af7bce0ae37361be542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?llu=C3=ADs=20g=C3=B3mez=20i=20bigord=C3=A0?= Date: Wed, 23 Feb 2011 21:32:17 +0000 Subject: help patch improved a bit svn path=/trunk/externals/pix_opencv/; revision=14956 --- pix_opencv_contours_convexity-help.pd | 175 +++++++++++++++++++++++----------- 1 file changed, 119 insertions(+), 56 deletions(-) diff --git a/pix_opencv_contours_convexity-help.pd b/pix_opencv_contours_convexity-help.pd index a2a3eab..cb86366 100644 --- a/pix_opencv_contours_convexity-help.pd +++ b/pix_opencv_contours_convexity-help.pd @@ -1,14 +1,10 @@ -#N canvas 179 49 1257 664 10; -#X obj 598 605 cnv 15 255 67 empty empty empty 20 12 0 14 -24198 -66577 +#N canvas 1886 22 1257 639 10; +#X obj 594 611 cnv 15 455 213 empty empty empty 20 12 0 14 -24198 -66577 0; -#X obj 616 648 pix_opencv_contours_convexity; -#X floatatom 804 807 5 0 0 0 - - -; #X floatatom 1767 815 5 0 0 0 - - -; #X floatatom 1801 815 5 0 0 0 - - -; #X text 1775 834 Depth point (X -Y); #X text 1840 816 End point (X -Y); -#X floatatom 722 709 5 0 0 0 - - -; -#X text 718 724 number convexity defects; #X text 46 156 pix_opencv_contours_convexity :: Finds convexity defects of the bigest contour of a binary image.; #X text 45 192 This object considers a contour to be analyzed any group @@ -54,7 +50,7 @@ be analyzed..; #X connect 10 0 7 0; #X connect 10 2 9 0; #X restore 63 104 pd gemwin; -#X msg 63 86 create; +#X msg 63 86 destroy; #X obj 464 858 pix_texture; #X obj 464 886 square 2; #X obj 616 391 separator; @@ -120,55 +116,122 @@ be analyzed..; #X floatatom 763 492 5 0 0 0 - - -; #X obj 616 534 pix_opencv_morphology; #X floatatom 764 533 5 0 0 0 - - -; -#X obj 815 778 unpack 0 0; -#X obj 809 695 route 0 1 2 3 4 5 6 7; #X obj 616 881 square 2; -#X text 891 779 for each point; -#X text 808 823 X; -#X floatatom 868 809 5 0 0 0 - - -; -#X text 868 827 Y; -#X connect 1 0 13 0; -#X connect 1 1 7 0; -#X connect 1 2 51 0; -#X connect 12 0 25 0; -#X connect 13 0 52 0; -#X connect 15 0 16 0; -#X connect 16 0 15 0; +#X floatatom 753 797 5 0 0 0 - - -; +#X floatatom 788 797 5 0 0 0 - - -; +#X floatatom 818 778 5 0 0 0 - - -; +#X floatatom 852 778 5 0 0 0 - - -; +#X obj 790 695 route 0 1 2 3 4; +#X obj 787 733 unpack 0 0 0 0 0 0; +#X floatatom 882 759 5 0 0 0 - - -; +#X floatatom 916 759 5 0 0 0 - - -; +#X text 826 798 Start point (X -Y); +#X text 890 778 Depth point (X -Y); +#X text 955 760 End point (X -Y); +#X floatatom 797 886 5 0 0 0 - - -; +#X floatatom 832 886 5 0 0 0 - - -; +#X floatatom 862 867 5 0 0 0 - - -; +#X floatatom 896 867 5 0 0 0 - - -; +#X obj 831 822 unpack 0 0 0 0 0 0; +#X floatatom 926 848 5 0 0 0 - - -; +#X floatatom 960 848 5 0 0 0 - - -; +#X text 870 887 Start point (X -Y); +#X text 934 867 Depth point (X -Y); +#X text 999 849 End point (X -Y); +#X floatatom 858 982 5 0 0 0 - - -; +#X floatatom 893 982 5 0 0 0 - - -; +#X floatatom 923 963 5 0 0 0 - - -; +#X floatatom 957 963 5 0 0 0 - - -; +#X obj 892 918 unpack 0 0 0 0 0 0; +#X floatatom 987 944 5 0 0 0 - - -; +#X floatatom 1021 944 5 0 0 0 - - -; +#X text 931 983 Start point (X -Y); +#X text 995 963 Depth point (X -Y); +#X text 1060 945 End point (X -Y); +#X floatatom 930 1056 5 0 0 0 - - -; +#X floatatom 965 1056 5 0 0 0 - - -; +#X floatatom 995 1037 5 0 0 0 - - -; +#X floatatom 1029 1037 5 0 0 0 - - -; +#X obj 964 992 unpack 0 0 0 0 0 0; +#X floatatom 1059 1018 5 0 0 0 - - -; +#X floatatom 1093 1018 5 0 0 0 - - -; +#X text 1003 1057 Start point (X -Y); +#X text 1067 1037 Depth point (X -Y); +#X text 1132 1019 End point (X -Y); +#X floatatom 704 660 5 0 0 0 - - -; +#X text 740 664 number convexity defects in our detected contour; +#X text 900 696 A convexity defect is defined by 3 points. So for each +convexity defects we have ::; +#X obj 615 420 translateXYZ 2 0 0; +#X obj 618 630 pix_opencv_contours_convexity; +#X connect 8 0 21 0; +#X connect 9 0 46 0; +#X connect 11 0 12 0; +#X connect 12 0 11 0; +#X connect 13 0 14 0; +#X connect 15 0 91 0; +#X connect 16 0 19 0; #X connect 17 0 18 0; -#X connect 19 0 46 0; -#X connect 20 0 23 0; -#X connect 21 0 22 0; -#X connect 22 0 25 1; -#X connect 23 0 24 0; -#X connect 24 0 25 0; -#X connect 25 0 37 1; -#X connect 25 2 21 0; -#X connect 26 0 25 0; -#X connect 27 0 26 0; -#X connect 29 0 25 0; -#X connect 29 0 39 0; -#X connect 30 0 25 0; -#X connect 31 0 25 0; -#X connect 32 0 29 0; -#X connect 32 0 27 0; -#X connect 33 0 19 0; -#X connect 34 0 36 0; -#X connect 35 0 34 0; -#X connect 36 0 17 0; -#X connect 37 0 33 0; +#X connect 18 0 21 1; +#X connect 19 0 20 0; +#X connect 20 0 21 0; +#X connect 21 0 33 1; +#X connect 21 2 17 0; +#X connect 22 0 21 0; +#X connect 23 0 22 0; +#X connect 25 0 21 0; +#X connect 25 0 35 0; +#X connect 26 0 21 0; +#X connect 27 0 21 0; +#X connect 28 0 25 0; +#X connect 28 0 23 0; +#X connect 29 0 15 0; +#X connect 30 0 32 0; +#X connect 31 0 30 0; +#X connect 32 0 13 0; +#X connect 33 0 29 0; +#X connect 33 0 31 0; +#X connect 34 0 33 2; +#X connect 35 0 33 0; +#X connect 36 0 35 0; #X connect 37 0 35 0; -#X connect 38 0 37 2; -#X connect 39 0 37 0; -#X connect 40 0 39 0; -#X connect 41 0 39 0; -#X connect 42 0 39 0; -#X connect 43 0 39 0; -#X connect 44 0 39 0; -#X connect 45 0 48 0; -#X connect 46 0 45 0; -#X connect 47 0 45 1; -#X connect 48 0 1 0; -#X connect 49 0 48 1; -#X connect 50 0 2 0; -#X connect 50 1 55 0; -#X connect 51 0 50 0; +#X connect 38 0 35 0; +#X connect 39 0 35 0; +#X connect 40 0 35 0; +#X connect 41 0 44 0; +#X connect 42 0 41 0; +#X connect 43 0 41 1; +#X connect 44 0 92 0; +#X connect 45 0 44 1; +#X connect 51 0 52 0; +#X connect 51 1 62 0; +#X connect 51 2 72 0; +#X connect 51 3 82 0; +#X connect 52 0 47 0; +#X connect 52 1 48 0; +#X connect 52 2 49 0; +#X connect 52 3 50 0; +#X connect 52 4 53 0; +#X connect 52 5 54 0; +#X connect 62 0 58 0; +#X connect 62 1 59 0; +#X connect 62 2 60 0; +#X connect 62 3 61 0; +#X connect 62 4 63 0; +#X connect 62 5 64 0; +#X connect 72 0 68 0; +#X connect 72 1 69 0; +#X connect 72 2 70 0; +#X connect 72 3 71 0; +#X connect 72 4 73 0; +#X connect 72 5 74 0; +#X connect 82 0 78 0; +#X connect 82 1 79 0; +#X connect 82 2 80 0; +#X connect 82 3 81 0; +#X connect 82 4 83 0; +#X connect 82 5 84 0; +#X connect 91 0 42 0; +#X connect 92 0 9 0; +#X connect 92 1 88 0; +#X connect 92 2 51 0; -- cgit v1.2.1