Problem with the function 'rectifyStereoImages'

2 views (last 30 days)
when I run this code in Matlab R2014a:
[J1,J2]=rectifyStereoImages(I1,I2,stereoParams);
An error occurs:
Operands to the || and && operators must be convertible to logical scalar
values.
Error in vision.CameraParameters/getValidBounds (line 694)
if left > right || top > bot
...
Then I correct the code like this:
[J1,J2]=rectifyStereoImages(I1,I2,stereoParams,'OutputView','full');
It runs for a long long time,and then shows ”Out of memory“
Error using horzcat
Out of memory. Type HELP MEMORY for your options.
Error in vision.internal.calibration.ImageTransformer/computeMap (line 146)
ptsIn = [X(:) Y(:)]; % remapmex requires singles
...
I can't understand why out of memory, my picture I1 and I2 is just 14KB. I'm not sure if it is concerned with the varible "stereoParams" since the MeanReprojectError is somewhat strange-5.5。
I appreciate very much if anyone can help me.

Answers (0)

Categories

Find more on Computer Vision Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!