当前位置: 首页 > news >正文

双目测距-初识

双目测距流程

1 相机标定(获取内外参数)

2 双目矫正(矫正镜头变形图像)

3 双目立体匹配(视差图)

4 计算深度信息(深度图)

5 计算距离

其中立体匹配是整个流程中比较重要的一环,往往在这里做研究和优化

流程

标定

参考 标定+矫正 MATLAB

矫正

匹配(传统算法或深度学习算法)

双目测距原理

其中_Xr_是负数,解释如下:
xr** represents a negative value.**

Here’s a step-by-step explanation of why:

1. The Coordinate System

To make the math work, we need to establish a consistent coordinate system for each camera’s image sensor. The standard convention is:

  • The origin (0) is at the center of the image (the principal point, where the optical axis intersects the sensor).
  • The x-axis increases to the right.
  • Therefore, any point to the right of the center has a positive x-coordinate, and any point to the left has a negative x-coordinate.
2. Analyzing the Diagram

Let’s apply this coordinate system to the diagram:

  • For the Left Camera (Ol): The point P is to the right of the camera’s central axis. Its projection on the image sensor, xl, is therefore also to the right of the center. So, xl** is a positive number**.
  • For the Right Camera (Or): The point P is to the left of this camera’s central axis. Its projection on the image sensor, xr, is therefore to the left of the center. So, xr** is a negative number**.
3. Why This is Crucial for the Formula

Now, let’s look at the formula for disparity (d):

d = xl - xr

If we substitute the signs we just determined:

d = (a positive number) - (a negative number)
d = (a positive number) + (another positive number)

This means the disparity d will be a positive value, which makes perfect sense. Disparity represents a distance (in pixels) and should be positive.

The Final Calculation

The final formula for calculating the distance Z is:

Z = f * T / d

Since the focal length f, the baseline T, and the disparity d are all positive values, the calculated distance Z will also be positive, which is correct.

In summary: Although the diagram draws xr as a length, the formula d = xl - xr treats it as a coordinate. For this formula to be correct in this geometric setup, xr must be a negative value.

双目测距的优势和劣势

  • 成本比单目高,但是比激光雷达低
  • 没有识别率的限制,无需维护样本库
  • 双目的匹配效果,直接影响测距的准确性
  • 对环境光照非常敏感
  • 不适用于单调缺乏纹理的场景(天空、沙漠、白墙)
  • 相机基线限制了测量范围
http://www.dtcms.com/a/466243.html

相关文章:

  • C++开发基础之日期处理的全面指南:从C库到Chrono
  • 北京网站维护公司直通车优化推广
  • 大厂MongoDB开发运维规范
  • 公司网站可以自己做吗wex5可以做网站吗
  • 在浏览器上播放摄像头rtsp视频流的实现方案
  • LeetCode算法日记 - Day 67: 不同路径、最长递增子序列
  • 2024ICPC区域赛香港站
  • 公司网站备案怎么做运营管理培训
  • 基于STM32的智能衣柜系统/智能衣帽间/wifi衣柜/wifi衣帽间/智能家居系统
  • access 网站后台seo引擎
  • 打字训练文章大全:哪吒打字1000篇打字文章素材
  • 使用 minimind
  • MinerU与Docling:智能文档处理框架对比
  • GAN(Generative Adversarial Nets)生成对抗网络论文笔记
  • sql练习
  • GESP C++等级认证三级12-操作string2-1
  • 人像摄影网站十大排名给公司建网站
  • 哈尔滨模板建站公司推荐上海传媒公司ceo是谁
  • Kubeadm安装完Kubernetes(K8S)后,ssh连不上了
  • 东方博宜OJ 1007:统计大写英文字母的个数 ← string
  • 3D地球可视化教程 - 第3篇:地球动画与相机控制
  • Python实现跳动的爱心
  • 网络营销策略存在的问题seo搜索引擎优化是做什么的
  • 中国建设银行门户网站wordpress 功能
  • 【ProtoBuffer】简介与安装
  • 网站管理 设置开启电子商务和网络购物网站
  • vue2和vue3响应式原理有何不同?
  • 做化工的 有那些网站沈阳网站排名工具
  • 郑州做网站的大公网站建设冫首先金手指十五
  • mysql数据库压缩