Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
PointF[] kutulokasyonufloat = new PointF[]
                    {

                    new PointF(aranacakrsmdortgen.Left,aranacakrsmdortgen.Top),
                    new PointF(aranacakrsmdortgen.Right,aranacakrsmdortgen.Top),
                    new PointF(aranacakrsmdortgen.Right,aranacakrsmdortgen.Bottom),
                    new PointF(aranacakrsmdortgen.Left,aranacakrsmdortgen.Bottom)
                    };
                    konumbulucu.ProjectPoints(kutulokasyonufloat);

                    Point[] kutulokasyonu = new Point[]
                     {

                    Point.Round(kutulokasyonufloat[0]),
                    Point.Round(kutulokasyonufloat[1]),
                    Point.Round(kutulokasyonufloat[2]),
                    Point.Round(kutulokasyonufloat[3])
                     };
                    
                    rsmsonuc.DrawPolyline(kutulokasyonu, true, arananrsmrengi, 2);

rsmsonuc is Image<bgr,byte>
i need to figure;
if rsmsonuc has a polyline then brake loop

What I have tried:

i am having trouble with try someting about it..
Posted

1 solution

Once it's drawn on the image, the best you can do is edge detection on the image, and even that's iffy.

If you're the one drawing the line(s), you could keep track of PolyLines that were drawn, or that fact that one was drawn, but that's a very minor coding challenge that even you should be able to handle.
 
Share this answer
 
Comments
dnmxlsm 30-Oct-16 17:10pm    
Thank you for your answer.Yes i am drawing the lines. Could you give me a little example code for how to check PolyLines?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900