How to import stereoParams from the result of amcctoolbox?

1 view (last 30 days)
The amcctoolbox (https://code.google.com/p/amcctoolbox/) which is based on the bouguetj toolbox (<http://www.vision.caltech.edu/bouguetj/calib_doc/index.html#examples>) and automatically calibrates a stereo camera rig outputs the attached files and a cam0 supresslist.mat and a cam1supresslist.mat which i cannot upload here because there are already 10 files.How can i import these files to the stereoParameters class which is nessasary to work with them ([J1, J2] = rectifyStereoImages(I1, I2, stereoParams);?
Thanks

Answers (1)

Dima Lisin
Dima Lisin on 1 Jul 2014
Hello Michael,
The simplest thing is to use the estimateCameraParameters() function to calibrate your stereo camera rig instead of amcctoolbox. That will directly produce the stereoParameters object that you need.
The only alternative is to write code to construct the stereoParameters object "by hand" from your .mat files. You would have to first construct two cameraParameters objects (one for each camera) to be passed into the constructor of stereoParameters, along with rotation and translation between the cameras. Please see the documentation for cameraParameters and stereoParameters for the constructor syntax. Unfortunately, I do not know much about amcctoolbox, so I cannot help you parse those .mat files.
The thing to keep in mind is that stereoParameters, like all functions in the Computer Vision System Toolbox, uses the post-multiply convention for vector-matrix multiplication. I. e. row vector post-multiplied by a matrix. If you construct the stereoParameters yourself, please check if you need to transpose the rotation matrices.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!