matlab rectify,Rectify a pair of stereo images

该博客介绍如何使用matlab的rectifyStereoImages函数对立体图像进行校正和重建3D场景。通过指定相机参数或投影变换,对输入图像进行校正,使对应点具有相同的行坐标,便于计算视差。
摘要由CSDN通过智能技术生成

rectifyStereoImages

Rectify a pair of stereo images

Description

[J1,J2]

= rectifyStereoImages(I1,I2,stereoParams) returns

undistorted and rectified versions of I1 and I2 input

images using the stereo parameters stored in the stereoParams object.

Stereo image rectification projects images onto a common image plane in such a way that the

corresponding points have the same row

coordinates. This image projection makes the image

appear as though the two cameras are parallel. Use

the disparityBM or disparitySGM functions to compute a

disparity map from the rectified images for 3-D

scene reconstruction.

[J1,J2]

= rectifyStereoImages(I1,I2,tform1,tform2) returns

rectified versions of I1 and I2 input

images by applying projective transformations tform1 and tform2.

The projective transformations are returned by the estimateUncalibratedRectification function.

[J1,J2]

= rectifyStereoImages(___,interp) additionally

specifies the interpolation method to use for rectified images. You

can specify the method as 'nearest', 'linear',

or 'cubic'.

[J1,J2]

= rectifyStereoImages(___,Name,Value) uses

additional options specified by one or more Name,Value pair

arguments.

Examples

Rectify Stereo Images

Specify images containing a checkerboard for calibration.

imageDir = fullfile(toolboxdir('vision'),'visiondata', ...

'calibration','stereo');

leftImages = imageDatastore(fullfile(imageDir,'left'));

rightImages = imageDatastore(fullfile(imageDir,'right'));

Detect the checkerboards.

[imagePoints,boardSize] = de

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值