Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calibrateCamera with CALIB_FIX_ASPECT_RATIO + CALIB_RATIONAL_MODEL yields zero distortion coefficients #15606

Open
bacalfa opened this issue Sep 28, 2019 · 0 comments
Labels
category: calib3d incomplete needs reproducer Provide complete minimal reproducer with input data

Comments

@bacalfa
Copy link

bacalfa commented Sep 28, 2019

System information (version)
  • Python => 3.6.8
  • OpenCV => 4.0.1 (Anaconda package build version: py36hce2de41_201)
  • Operating System / Platform => Windows and Linux (RHEL) 64 Bit
  • Compiler => Visual Studio 2015 and g++ 8.2.0
Detailed description

When I call function calibrateCamera with the flags argument equal to cv2.CALIB_FIX_ASPECT_RATIO + cv2.CALIB_RATIONAL_MODEL, I get all distortion coefficients equal to zero. When calling the function, I pass an array of shape (8, 1) full of zeros.

I also noticed that the following cases do not yield distortion coefficients equal to zero after the optimization finishes (properly sized arrays are passed in each):

  • flags = cv2.CALIB_FIX_ASPECT_RATIO + cv2.CALIB_RATIONAL_MODEL + cv2.CALIB_THIN_PRISM_MODEL
  • flags = cv2.CALIB_FIX_ASPECT_RATIO + cv2.CALIB_RATIONAL_MODEL + cv2.CALIB_THIN_PRISM_MODEL + cv2.CALIB_TILTED_MODEL
Steps to reproduce

Unfortunately, I cannot share the data or the code. But I'm wondering if others also experience this issue. I also initialize the camera matrix elements [0, 0] and [1, 1] to the value 1. All other arguments take on their default values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: calib3d incomplete needs reproducer Provide complete minimal reproducer with input data
Projects
None yet
Development

No branches or pull requests

2 participants