CalibRectNewIndices

所属分类:matlab编程
开发工具:matlab
文件大小:114KB
下载次数:3
上传日期:2014-08-26 00:04:53
上 传 者adilsondisso
说明:   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.

文件列表:
CalibRectNewIndices\Calib_Results_stereo.mat (24099, 2013-09-05)
CalibRectNewIndices\Double_versus_uint.m (12583, 2014-08-16)
CalibRectNewIndices\extractIndicesForStereoPair.m (19978, 2014-08-25)
CalibRectNewIndices\FindLargestRectanglesPUS.m (6501, 2014-07-08)
CalibRectNewIndices\image_left1.jpg (45231, 2013-09-05)
CalibRectNewIndices\image_right1.jpg (43826, 2013-09-05)
CalibRectNewIndices\rectify_stereo_pair.m (8293, 2014-07-06)
license.txt (1352, 2014-08-25)

% extractIndicesForStereoPair.m 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.). 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) Procedure: Put the modifieded attached files "rectify_stereo_pair.m" and 'FindLargestRectanglesPUS.m' in your image directory. Download Jean-Yves Bouguet's toolbox in any directory. In matlab add Jean-Yves Bouguet's toolbox in the "set path" menue.In matlab go to the path of your images and calibrate Jean-Yves Bouguet's toolbox the left and right images. Run 'rectify_stereo_pair.m' in your image directory. Out of the new "rectify_stereo_pair.m" you get the required parameters as mat file into your image directory. Run now extractIndicesForStereoPair.m . Output: Output of this script are the parameters for the largest rectangle which contains only image pixels. Select the output format with 'Nformat'.Depending on Nformat the bilinear parameters a1... to a4... are converted to double, uint8, uint16, uint32 or nearest neighbor. Uint8 parameters produce errors of +-1 and should work very good with FPGAs.'Nearest neighbor' produces many errors. Error checking: Errors may be checked with the file 'Double_versus_uint'. Demo: For demonstration just put all files in one directory and run first "rectify_stereo_pair.m". Then run "extractIndicesForStereoPair.m"

近期下载者

相关文件


收藏者