Recalculate rectification indices for rectangle image
Purpose:
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'.
Requirements:
This script works only in conjunction with the "Camera Calibration Toolbox for Matlab" from Jean-Yves Bouguet:
http://www.vision.caltech.edu/bouguetj/calib_doc/
Also required is the modified file 'FindLargestRectanglesPUS.m' (original from Jaroslaw Tuszynski, see
http://www.mathworks.com/matlabcentral/fileexchange/28155-inscribed-rectangle/content/FindLargestRectangles.m)
This files is included in this package.
Cite As
Peter Seibold (2025). Recalculate rectification indices for rectangle image (https://www.mathworks.com/matlabcentral/fileexchange/47167-recalculate-rectification-indices-for-rectangle-image), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- FPGA, ASIC, and SoC Development > Vision HDL Toolbox >
- Image Processing and Computer Vision > Vision HDL Toolbox >
- Image Processing and Computer Vision > Computer Vision Toolbox > Camera Calibration >
- Image Processing and Computer Vision > Computer Vision Toolbox > Point Cloud Processing > Display Point Clouds >
Tags
Acknowledgements
Inspired by: Inscribed_Rectangle
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.