简体   繁体   English

特定对象的立体对应和3D位置(ROI)

[英]Stereo Correspondence and 3D location of a specific object (ROI)

I am interested in getting the 3D location of a specific object (Using stereo vision) given its location and ROI in the left image, in addition to obtaining its location in the right image. 考虑到特定对象的3D位置(使用立体视觉),除了在右侧图像中获得其位置和ROI外,我还感兴趣。

All I found online is how to get the disparity map using (StereoBM::operator()/ cvFindStereoCorrespondenceBM). 我在网上发现的所有内容都是如何使用(StereoBM :: operator()/ cvFindStereoCorrespondenceBM)获取视差图。

What is the approach? 有什么办法? How can I get the disparity of that object? 如何获得该物体的视差? Is there a direct way of doing it after getting the disparity map or I should match the object first in the right image to get the disparity? 获取视差图之后是否有直接的方法来做?还是我应该首先在正确的图像中匹配对象以获取视差?

Can you suggest a good algorithm to match the object? 您能提出一种匹配对象的好的算法吗? please include codes in the answer. 请在答案中包含代码。

Your task has the following steps: 您的任务包括以下步骤:

1) Camera calibration 1)相机校准
2) Extracting features (manually or via algorithms. For example - SURF, SIFT); 2)提取特征(手动或通过算法,例如-SURF,SIFT);
3) Matching features (it's up to you. OpenCV has a brute force matcher) 3)匹配功能(由您决定。OpenCV具有强力匹配器)
4) Fundamental and Homography matrices estimation 4)基本和单应矩阵估计
5) Rectification (OpenCV stereo matcher works only with rectified images) 5)校正(OpenCV立体声匹配器仅适用于校正后的图像)
6) Disparity map 6)视差图
7) Triangulation based on your camera model (might not be pin-hole) 7)根据您的相机型号进行三角测量(可能不是针孔)

Good explanations are available from these books with code: 这些书提供了很好的解释,并提供了代码:
1) OpenCV 2 Computer Vision Application Programming Cookbook by Robert Laganière 1)RobertLaganière撰写的《 OpenCV 2计算机视觉应用编程手册》
2) Learning OpenCV by Gary Bradski 2)通过Gary Bradski学习OpenCV
3) An Introduction to 3D Computer Vision Techniques and Algorithms by Boguslaw Cyganek and J. Paul Siebert 3)Boguslaw Cyganek和J. Paul Siebert对3D计算机视觉技术和算法的介绍

Hope it helps! 希望能帮助到你! =) =)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM