我怎样才能衡量立体图像的距离? [英] How can I measure distances in stereo images?

查看:130
本文介绍了我怎样才能衡量立体图像的距离?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个图像(左,右)
我想衡量图像的真实距离?
当我点击的形象,我会得到真正的距离单击点以相机

I Have two images( left and right ) I want to measure the real distance on image? When I click on the image, ı ll get real distance to clicked point to camera.

左图:

右键图片:

< A HREF =http://i.stack.imgur.com/0cO4z.png相对=nofollow>

我已经校准两个图像。我想用EmguCV来获得图像的距离。

I have calibrated the two images. I want to use EmguCV to get distance from image.

这可能吗?

推荐答案

虽然我不知道EmguCV的具体情况,我可以告诉你背后的观感如何立体深度的工作理念,希望可以再实现某种修复。

While I do not know the specifics of EmguCV, I can tell you the concept behind how stereo depth perception works, and hopefully you can then implement some sort of fix.

基本上,第一个步骤是对图像的部分和匹配部分。你正试图在这里完成的是识别的图像是在每个同的部分。例如,要能够识别每个图像中的灯的中心。该功能设置你所使用的,这是你的,只有一个基本的,可以帮助是通过使用边缘检测器(如精明的方法),并试图匹配类似的形状轮廓。此外,另一种技术是常见的是分手的形象成更小的块和匹配那些块的功能。您使用的方法是由你。

Essentially, the first step is to segment and match parts of the image. What you are trying to accomplish here is to identify the parts of the image that are the "same" in each. For instance, you want to be able to identify the center of the lamp in each image. The feature set you use to do this is up to you, but one basic one that may help is by using an edge detector (like the canny method) and trying to match contours with similar shapes. Additionally, another technique that is common is breaking up the image into smaller blocks and matching features in those blocks. The method you use is up to you.

接下来,您可以从您的相机的两个图像中心计算出匹配的对象的距离。您需要既为x和y方向做到这一点。我们称这是你的x和y的差距。

Next, you are able to calculate the distance of the matched objects from the center of your camera in both images. You will need to do this both for the x and y directions. We will call this your x and y disparity.

现在,你需要知道的是拍了照摄像机的中心之间的距离。一旦你有了这个,还有一些简单的触发,你可以做些什么来解决距离。有这样一个相当简单的解释的 这里

Now, you need to know the distance between the centers of the cameras that took the picture. Once you have this, there is some simple trig that you can do to solve for distance. There is a rather simple explanation of this here

再次,这是所有的概念,但要知道你是如何算法应用的工作是很重要的。第一步,了解解决一个问题是理解问题本身。一旦你的问题有充分的认识,并解决它,实现与任何库程序应该变得更加容易的过程。祝你好运!

Again, this is all conceptual, but it is important to know how the algorithms you are applying work. The first step to understanding the solution to a problem is to understand the problem itself. Once you have a full understanding of the problem, and the procedure for solving it, implementing that procedure with any library should become much easier. Good luck!

这篇关于我怎样才能衡量立体图像的距离?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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