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

Adding image rectification for equidistant model (fisheye lenses) #184

Closed

Conversation

alexzzhu
Copy link

OpenCV now has support for fisheye models (named "equidistant" in other places), which can be integrated into image_geometry to undistort fisheye cameras using image_proc.

Note that there is currently no distortion model for this defined in sensor_msgs, and an appropriate constant will need to be defined.

@mikaelarguedas
Copy link
Contributor

Note that there is currently no distortion model for this defined in sensor_msgs, and an appropriate constant will need to be defined.

Would it make sense to open a PR on sensor_msgs to add the new define so that it can be used in this PR ?

@alexzzhu
Copy link
Author

alexzzhu commented Sep 3, 2017

I've now made a PR for this define in sensor msgs:
ros/common_msgs#109

This PR now uses that definition instead of hardcoding in "equidistant", but is dependent on that PR to compile.

@rmaronson
Copy link

any motion on this? just wanted to register my interest + willingness to help if necessary to get this closed

@alexzzhu
Copy link
Author

alexzzhu commented Jul 25, 2018

The build is failing because it's looking for the equidistant distortion model as a defined constant. This was added to the jade-devel branch in my PR here: ros/common_msgs#109, but I'm not sure why the build cannot find it.

@fabianschilling
Copy link

This seems ready to merge, can someone please restart CI with updated common_msgs package?

@zgxsin
Copy link

zgxsin commented Oct 11, 2019

Why is this MR still not merged?

@alexzzhu
Copy link
Author

Not sure if there's anything I can do on my side...

@hermannsblum
Copy link

@mjcarroll Because you are the most recent maintainer who merged something in this repository, any update for this PR?

@mjcarroll
Copy link
Contributor

mjcarroll commented Jan 19, 2020 via email

@mintar
Copy link
Contributor

mintar commented Jul 17, 2020

There is an extended version of this PR at #306.

cv::initUndistortRectifyMap(K_binned, D_, R_, P_binned, binned_resolution,
CV_16SC2, cache_->full_map1, cache_->full_map2);

if (cameraInfo().distortion_model.compare(sensor_msgs::distortion_models::PLUMB_BOB) == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should also check for RATIONAL_POLYNOMIAL, see #299 .

@mintar
Copy link
Contributor

mintar commented Mar 3, 2021

This PR can be closed, since #358 was finally merged.

@alexzzhu alexzzhu closed this Mar 30, 2021
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.

8 participants