Search code examples
matlabcomputer-visionmatlab-cvst3d-reconstruction

Rectified images of same size as the initial ones


I want to rectify a stereo image pair in MATLAB. To rectify, I use the following call:

[J1,J2] = rectifyStereoImages(I1,I2, cameraParamsStereo);

If I do this, then I only get the so called valid part of each image which is smaller than the initial image size. If I specify the argument OutputView as full, then I get rectified images which are larger than the original ones.

Is there a way to get rectified images that have the same size as the original ones?


Solution

  • It is possible in principle, but rectifyStereoImages does not support this.