用于在ubuntu12.04中使用OpenCV查看图像中的值的GUI [英] GUI to view values in image using OpenCV in ubuntu12.04

查看:156
本文介绍了用于在ubuntu12.04中使用OpenCV查看图像中的值的GUI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以同时显示图像和像素,基于鼠标指针位置的坐标值?

Is it possible to simultaneously display an image and the pixel,coordinate values based on the mouse pointer positions?

我在MATLAB中询问OpenCV等效的imview函数。

I am asking an OpenCV equivalent of imview function in MATLAB.

推荐答案

我曾经使用旧代码单独使用OpenCV尝试执行此操作时出现了一些问题。在这一点上,我不确定我是否遗漏了某些内容,或者它是否是OpenCV中的错误。我会进一步调查。

I had a few problems trying to do this with OpenCV alone using an old code I wrote a while back. At this point I'm not sure if I missed something or if it's a bug in OpenCV. I'll investigate this further.

但我分享了一个简短,自我在我的存储库中包含,更正(可编辑),示例,检查 cvImage 。它用Qt和OpenCV 用 C ++编写。这是一个Qt应用程序使用OpenCV加载图像并将RGB值显示为Qt窗口的标题

But I shared a short, self contained, correct (compilable), example at my repository, check cvImage. It's written in C++ with Qt and OpenCV. It's a Qt application that loads an image with OpenCV and displays the RGB values as the title of the Qt window.

移动鼠标并放置光标在您感兴趣的像素之上,看它的RGB值。

Move the mouse around and place the cursor on top of the pixel that you are interested at to see it's RGB value.

这篇关于用于在ubuntu12.04中使用OpenCV查看图像中的值的GUI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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