MATLAB: RectifyStereoImages doesn’t cope with projective2d transforms being passed to it for uncalibrated stereo pairs

Computer Vision Toolboxrectifystereoimages

When following the code example at http://au.mathworks.com/help/vision/examples/uncalibrated-stereo-image-rectification.html I get an error no the final image rectification step with the following command (output included) I wonder if my version of the Computer Vision Toolbox (6.1 under R2014b) is not supporting this operation?:
>> [I1Rect, I2Rect] = rectifyStereoImages(I1, I2, tform1, tform2); Error using rectifyStereoImages Expected stereoParams to be one of these types:
stereoParameters
Instead its type was projective2d.
Error in rectifyStereoImages>validateStereoParameters (line 129) validateattributes(params, {'stereoParameters'}, …
Error in rectifyStereoImages>parseInputs (line 109) validateStereoParameters(stereoParams);
Error in rectifyStereoImages (line 96) [I1, I2, interp, outputView, fillValues] = parseInputs(…
>>
Thank you in advance of any advice received.
James

Best Answer

The current online documentation is for R2015b. The analogous documentation for R2014b is here Uncalibrated Stereo Image Rectification.
(I don’t have any version of the Toolbox, so the is the limit of my ability to help.)