视觉 SLAM
使用单目、RGB-D 或立体相机进行实时视觉定位和地图构建 (vSLAM),支持惯性传感器融合和部署
视觉同步定位与地图构建 (vSLAM) 是使用视觉输入估计相机位置和姿态,并同时进行环境地图构建的过程。Computer Vision Toolbox™ 支持单目、RGB-D 和立体相机的 vSLAM 工作流,并可选择惯性传感器融合以提高精度。这些功能对于机器人、增强现实和自主导航等应用至关重要。有关选择 vSLAM 工作流的指南,请参阅Choose SLAM Workflow Based on Sensor Data。
每个视觉 SLAM 对象(monovslam、rgbdvslam 和 stereovslam)都提供了即用型工具,可添加帧、跟踪关键帧、计算三维地图点、估计相机位姿、执行闭环检测以及在整个相机轨迹中可视化数据。您还可以通过使用 compareTrajectories 函数将估计的相机轨迹与真实值进行比较,以评估 vSLAM 算法的性能。工具箱还提供了构建您自己的视觉 SLAM 流程的功能。
您可以使用该工具箱执行 vSLAM 算法的代码生成和部署。有关详细信息,请参阅Build and Deploy Visual SLAM Algorithm with ROS in MATLAB和Performant and Deployable Monocular Visual SLAM。
函数
主题
即用型视觉 SLAM 函数
- Performant and Deployable Monocular Visual SLAM
Use visual inputs from a camera to perform vSLAM and generate multi-threaded C/C++ code. - Performant Monocular Visual-Inertial SLAM
Use visual inputs from a camera and positional data from an IMU to perform viSLAM in real time. (自 R2025a 起) - Choose SLAM Workflow Based on Sensor Data
Choose the right simultaneous localization and mapping (SLAM) workflow and find topics, examples, and supported features. - How to Improve Accuracy in Visual SLAM
Tips to improve the accuracy, robustness, and efficiency of your visual SLAM system.
构建您自己的视觉 SLAM 流程
- Monocular Visual Simultaneous Localization and Mapping
Visual simultaneous localization and mapping (vSLAM). - Monocular Visual-Inertial SLAM
Perform SLAM by combining images captured by a monocular camera with measurements from an IMU sensor. - Stereo Visual Simultaneous Localization and Mapping
Process image data from a stereo camera to build a map of an outdoor environment and estimate the trajectory of the camera.









