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

correct distCoeffs of SIMPLE_RADIAL #337

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

Master-cai
Copy link
Contributor

Hi, there is a typo of the distCoeffs of "SIMPLE_RADIAL", which will cause

cv2.error:
OpenCV(4.7.0) /home/conda/feedstock_root/build_artifacts/libopencv_1674428302344/work/modules/calib3d/src/undistort.dispatch.cpp:411: error: (-215:Assertion failed) CV_IS_MAT(_distCoeffs) && (_distCoeffs->rows == 1 || _distCoeffs->cols == 1) && (_distCoeffs->rows*_distCoeffs->cols == 4 || _distCoeffs->rows*_distCoeffs->cols == 5 || _distCoeffs->rows*_distCoeffs->cols == 8 || _distCoeffs->rows*_distCoeffs->cols == 12 || _distCoeffs->rows*_distCoeffs->cols == 14) in function 'cvUndistortPointsInternal'

I have fixed it by padding the params.

Copy link
Collaborator

@liruilong940607 liruilong940607 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah right thanks for the fixing!

@liruilong940607 liruilong940607 merged commit 435305e into nerfstudio-project:main Aug 20, 2024
2 checks passed
@Master-cai Master-cai deleted the distCoeffs_bug branch August 21, 2024 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants