How to get distortion coefficients from fisheye calibration result?

조회 수: 55 (최근 30일)
ZHENZHONG XIE
ZHENZHONG XIE 2022년 1월 26일
편집: cui,xingxing 2022년 9월 27일
I am really confused how to get distortion coefficients and intrinsic matrix from fishey calibration result.
I've no idea how to use the fisheye cameraParams.Intrinsics consisting of MappingCoefficients ,ImageSize ,DistortionCenter and StretchMatrix.
Need help, thx!
  댓글 수: 1
ZHENZHONG XIE
ZHENZHONG XIE 2022년 1월 26일
The intrinsic Matrix and distortion coefficients are needed by cpp program which use OpenCV to undistort the fisheye images.

댓글을 달려면 로그인하십시오.

답변 (1개)

cui,xingxing
cui,xingxing 2022년 9월 27일
편집: cui,xingxing 2022년 9월 27일
The matlab fisheye camera model uses the "Scaramuzza fisheye model", which is different from OpenCV. However, you can still use the aberration parameters from the MATLAB fisheye calibration in opencv, and it is recommended generate C/C++ code for them. Attached are a couple of files(support C code generation) that I have implemented to behave consistently with the functions built into matlab.
load testdata.mat
[J1,K] = undistortFisheyeImageFcn(I,intrinsics);
K
K = 3×3
376.0000 0 376.4016 0 376.0000 373.0798 0 0 1.0000
imshowpair(I,J1,'montage')

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by