如何在图像中选择一个非矩形的ROI [英] how to select an not rectangular roi in an image

查看:85
本文介绍了如何在图像中选择一个非矩形的ROI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用opencv打开一个图像并在其上选择一个非矩形的roi.或者至少能够存储我单击该图像的某些点的坐标.

总的来说,我想打开一个图像,单击一些点,将其存储在与图像文件名关联的文件中,然后按下按钮"a"或"b",然后将该图像存储在文件中,类型为"a"或''b.我使用的是opencv,也许使用的是wxwidgets.但是我真的很陌生.
谢谢Advanced

i want to open an image with opencv and select an not rectangular roi on it.or at least be able to store the coordinates of some points i click on the image.

on the whole i want to open an image,click some points,store them in a file associated with the images filename,an then push button "a" or "b" and store in a file this image was of type "a" or ''b. i use opencv and maybe wxwidgets.but i am really new into this
thanks in advanced

推荐答案

您不需要opencv吗? ,您不能仅将列表点存储在文本文件中吗?并且此文本文件还可以具有某种标识符,以显示该文本文件与哪个文件相关联.您可以从中使用线段来创建选择..

jkchan
http://cgmath.blogspot.com
you don''t need opencv for that ? , can''t you just store a list points in a text file ? and this text file can also have some kind of identifier showing to which file it is associated. you can use line segments from this to create selection ..

jkchan
http://cgmath.blogspot.com


这篇关于如何在图像中选择一个非矩形的ROI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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