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

fixes for fisheye calibration #542

Merged
merged 2 commits into from Jun 12, 2020
Merged

Conversation

soeroesg
Copy link
Contributor

fix #503:
set_cammodel of StereoCalibrator need to override the method of parent class

fix related to opencv/opencv#11085

unlike cv2.calibrate, the cv2.fisheye.calibrate method expects float64 points and in an array with an extra dimension. The same for cv2.stereoCalibrate vs cv2.fisheye.stereoCalibrate

set_cammodel of StereoCalibrator need to override the method of parent class

fix related to opencv/opencv#11085

unlike cv2.calibrate, the cv2.fisheye.calibrate method expects float64 points and in an array with an extra dimension. The same for cv2.stereoCalibrate vs cv2.fisheye.stereoCalibrate
Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

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

@JWhitleyWork any issues?

@SteveMacenski
Copy link
Member

@soeroesg please submit this patch to noetic and ros2 before we merge this to keep them synced

@JWhitleyWork
Copy link
Collaborator

Just one minor thing.

trimmed whitespace at line endings
@JWhitleyWork JWhitleyWork merged commit 9ce872a into ros-perception:melodic Jun 12, 2020
@SJamieson
Copy link

Thanks @soeroesg and @JWhitleyWork!

DavidTorresOcana pushed a commit to DavidTorresOcana/image_pipeline that referenced this pull request Aug 23, 2020
* fix ros-perception#503:

set_cammodel of StereoCalibrator need to override the method of parent class

fix related to opencv/opencv#11085

unlike cv2.calibrate, the cv2.fisheye.calibrate method expects float64 points and in an array with an extra dimension. The same for cv2.stereoCalibrate vs cv2.fisheye.stereoCalibrate

* removed commented line;
trimmed whitespace at line endings
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.

camera_calibration/calibrator.py: StereoCalibrator fails for stereo fisheye cameras
4 participants