我有两个图像(都是完全相同的图像),我正在尝试使用平方距离和重建 3D 空间中的差异来计算它们之间的差异。在计算视差之前是否需要校正图像?
以下是我迄今为止为视差图计算所做的步骤(我尝试过校正和不校正,但两者都返回全零视差矩阵)。
For each pixel in the left image X,
Take the pixels in the same row in the right image.
Separate the row in right image to windows.
For each window,
Calculate the disparity for each pixel in that window with X
Select the pixel in the window which gives minimum SSD with X
Find the pixel with minimum disparity among all windows as the best match to X
我做得对吗?
如何在matlab中将视差的3D重建可视化为散点图?