轻松实现轮廓绘制功能的方法? [英] Light easy way to implement contour drawing feature?

查看:61
本文介绍了轻松实现轮廓绘制功能的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现绘制闭合轮廓的特征,该轮廓定义了我感兴趣的区域。我想用鼠标手动绘制一个包围图像中某个对象的轮廓。轮廓应该在最后关闭,像ImageJ那样。我想知道是否有任何工具,C ++中的第三方库可以帮助解决这个问题。我知道OpenCV可能是一个来源,但我正在努力实现简单易用的东西。那么反正这样做了吗?任何指针都很受欢迎。谢谢。 --Nick

I am trying to implement a feature of drawing closed contour that defines my region of interest. I would like to manually draw a contour that encloses some object in a image using my mouse. The contour should be closed at the end, something like ImageJ does. I am wondering if there is any tools, 3rd party libs in C++ can help with this. I know probably OpenCV can be a source, but I am trying to implement something light and easy. So is there anyway to do so? Any pointer is appreciated. Thanks. --Nick

推荐答案

我们曾经在VB2的图片框上使用PSET(像素集)命令。



我不知道这个命令是否仍然可以在一个图片框对象中使用,但它非常基本所以我认为它仍然存在。



据我所知使用的命令类似.....



We used to use PSET (pixel set) command on a picturebox in VB2.

I dont know if that command is still available in a picturebox object but its is pretty basic so I shuold assume its still there.

As far as i can remember the command used go something like.....

MyPictureBox1.Pset(X,Y,Color)


看看这个样本我做了什么

http://www.codeproject.com/Questions/505546/howplustoplusdrawplusstraightpluslineplushorizo​​nta\">在这个网站上





它不在C ++中,但它不应该太难以移植
Look at this sample i did
http://www.codeproject.com/Questions/505546/howplustoplusdrawplusstraightpluslineplushorizonta">On this website


its not in C++ but it shouldn''t be too difficult to port


这篇关于轻松实现轮廓绘制功能的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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