如何检查图像是否具有绘制的折线? [英] How do I check if an image has a drawn polyline?

查看:79
本文介绍了如何检查图像是否具有绘制的折线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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是图像< bgr,byte>

i需要计算;

如果rsmsonuc有折线然后制动循环



我尝试了什么:



i遇到麻烦关于它..


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..

推荐答案

一旦它在图像上绘制,你可以做的最好的是对图像进行边缘检测,甚至是不确定的。



如果您是绘制线条的人,您可以跟踪绘制的PolyLine,或者绘制一条线的事实,但这是一个非常小的编码挑战,即使你应该能够处理。
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.


这篇关于如何检查图像是否具有绘制的折线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆