Incorrect focal length by Camera Calibrator?

3 ビュー (過去 30 日間)
Yuri Rzhanov
Yuri Rzhanov 2024 年 2 月 27 日
回答済み: Hornett 2024 年 9 月 23 日
Hello,
I noticed that Camera Calibrator gives focal lengths approximately twice as big as OpenCV. This affects calculation of the field of view. I think that Camera Calibrator's values are incorrect as field of view provided by camera manufacturer and rough estimates of FoV obtained by myself match the OpenCV values. Is the Camera Calibrator's meaning of focal length different from the standard one?
Thank you,
Yuri Rzhanov

回答 (1 件)

Hornett
Hornett 2024 年 9 月 23 日
The discrepancy you are observing might be due the fact that OpenCV spatial coordinate system specifies the upper-left pixel center at (0,0), whereas the MATLAB spatial coordinate system specifies the pixel center at (1,1). You can use the "cameraIntrinsicsToOpenCV" function to convert MATLAB "cameraIntrinsics" or "cameraParameters" object, specified by intrinsics, to OpenCV camera intrinsic parameters.
Take a look at the following documentation which can help you further.
Hope it helps!

カテゴリ

Help Center および File ExchangeCamera Calibration についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by