How to import stereoParams from the result of amcctoolbox?

조회 수: 3 (최근 30일)
Michael
Michael 2014년 6월 30일
답변: Dima Lisin 2014년 7월 1일
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

답변 (1개)

Dima Lisin
Dima Lisin 2014년 7월 1일
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.

카테고리

Help CenterFile Exchange에서 Camera Calibration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by