주요 콘텐츠

스테레오 비전

스테레오 카메라 보정, 편위수정, 시차 추정 및 조밀한 3차원 복원

스테레오 비전을 사용하면 동일한 장면에 대한 두 개의 뷰를 비교하여 깊이를 추정할 수 있습니다. 이 계산의 출력은 3차원 포인트 클라우드이며, 여기서 각 점은 두 영상 중 하나에서 매칭되는 픽셀에 대응합니다. 워크플로는 스테레오 카메라 보정으로 시작하며, 이 단계에서는 스테레오 카메라 보정기 앱을 사용하여 내부 파라미터와 외부 파라미터를 추정합니다. 보정이 완료되면 스테레오 영상 편위수정을 통해 영상 쌍을 공통의 평면에 정렬하여 시차 추정을 위한 대응점 매칭을 단순화합니다. 이에 대한 소개는 Using the Stereo Camera Calibrator App 항목을 참조하십시오. 무보정 영상에 대해 스테레오 편위수정을 수행하려면 Uncalibrated Stereo Image Rectification 항목을 참조하십시오.

블록 매칭이나 준전역 매칭(semi-global matching)과 같은 고전적인 알고리즘을 사용하여 시차 지도를 계산할 수 있습니다. 그런 다음, 삼각측량 및 에피폴라 지오메트리와 같은 기하 원리를 적용하여, 시차 지도를 이용한 조밀한 3차원 장면 복원을 수행할 수 있습니다. 자세한 내용은 Reconstruct 3-D Scene from Stereo Image Pair Using Semi-Global Matching 항목과 Compare RAFT Optical Flow and Semi-Global Matching for Stereo Reconstruction 항목을 참조하십시오.

스테레오 비전을 사용하면 시각 SLAM 및 실제 거리 측정과 같은 고급 응용도 가능합니다. 자세한 내용은 Stereo Visual SLAM for UAV Navigation in 3D Simulation 항목과 Measure Real-World Distances to Objects Using a Stereo-Camera 항목을 참조하십시오.

Stereo Vision Capabilities Overview

스테레오 카메라 보정기스테레오 카메라의 기하 파라미터 추정

함수

모두 확장

estimateCameraParameters단일 또는 스테레오 카메라 보정
estimateStereoBaselineEstimate baseline of stereo camera
stereoParameters스테레오 카메라 시스템 파라미터를 저장하기 위한 객체
stereoCalibrationErrorsObject for storing standard errors of estimated stereo parameters
undistortImage영상에서 렌즈 왜곡 보정
undistortPoints렌즈 왜곡을 보정한 점 좌표
disparityBMCompute disparity map using block matching
disparitySGMCompute disparity map through semi-global matching
rectifyStereoImagesRectify pair of stereo images
estimateStereoRectificationUncalibrated stereo rectification (R2022b 이후)
reconstructSceneReconstruct 3-D scene from disparity map
triangulate3-D locations of undistorted matching points in stereo images
epipolarLineCompute epipolar lines for stereo images
isEpipoleInImageDetermine whether image contains epipole
lineToBorderPointsIntersection points of lines in image and image border
showReprojectionErrorsVisualize calibration errors
showExtrinsicsVisualize extrinsic camera parameters
stereoAnaglyphCreate red-cyan anaglyph from stereo pair of images
pcshowPlot 3-D point cloud
plotCameraPlot camera in 3-D coordinates
stereoParametersFromOpenCVConvert stereo camera parameters from OpenCV to MATLAB (R2021b 이후)
stereoParametersToOpenCVConvert stereo camera parameters from MATLAB to OpenCV (R2021b 이후)
rotmat2vec3d3차원 회전 행렬을 회전 벡터로 변환 (R2022b 이후)
rotvec2mat3d3차원 회전 벡터를 회전 행렬로 변환 (R2022b 이후)

도움말 항목

추천 예제