我不是想整頓對立體圖像,但我從功能上得到一個奇怪的錯誤rectifyStereoImages拋出「沒有足夠的輸入參數錯誤」
Error using rectifyStereoImages (line 106)
Not enough input arguments.
Error in RealTimeProcessing>captureButton_Callback (line 134)
[I1Rect, I2Rect] = rectifyStereoImages(I1, I2,stereoParams);
自己編寫的代碼行是
[I1Rect, I2Rect] = rectifyStereoImages(I1, I2,stereoParams);
正如您所看到的,兩個圖像和stereoParameters都存在。我通過使用MATLAB中的立體相機校準工具獲得了stereoParams。是否有一些我缺少的輸入?鏈接到文件是here。我已經包含了兩個輸入圖像和stereoParams。
它給了我rectifyStereoImages.m文件的路徑 /Applications/MATLAB_R2015b.app/toolbox/vision/vision/rectifyStereoImages.m –
它的工作原理,當我使用[這](http://in.mathworks.com /help/vision/examples/uncalibrated-stereo-image-rectification.html)教程。但是我已經校準了我的相機,所以我正在使用[this](http://in.mathworks.com/help/vision/ref/rectifystereoimages.html),並且出現此錯誤。 –