For fast image processing this script extracts all the parameters for stereo image rectification in order to get the largest rectangular image pairs with only valid pixel values. The parameters are sorted in the way images are read in (First pixels of first row, then pixels of 2nd row etc.). Furthermore the precision for the bilinear transformation can be reduced to 8, 16, 32 or nearest neighbor in order to save calculation efforts. The effect of precision reduction are evaluated with 'Double_versus_uint.m'.
This script works only in conjunction with the "Camera Calibration Toolbox for Matlab" from Jean-Yves Bouguet:
Also required is the modified file 'FindLargestRectanglesPUS.m' (original from Jaroslaw Tuszynski, see
This files is included in this package.
New readme file
Indices for left and right rectified images with largest common rectangle.
For bilinear transformation 'nearest neighbor' is added.