-
Notifications
You must be signed in to change notification settings - Fork 606
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
Adding image rectification for equidistant model (fisheye lenses) #184
Conversation
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 ? |
I've now made a PR for this define in sensor msgs: This PR now uses that definition instead of hardcoding in "equidistant", but is dependent on that PR to compile. |
any motion on this? just wanted to register my interest + willingness to help if necessary to get this closed |
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. |
This seems ready to merge, can someone please restart CI with updated |
Why is this MR still not merged? |
Not sure if there's anything I can do on my side... |
@mjcarroll Because you are the most recent maintainer who merged something in this repository, any update for this PR? |
I'm about to take a pass at the open PRs here. It's very likely that most
will be retargeted to noetic to keep from making major changes to the
melodic release at this point.
…On Sun, Jan 19, 2020, 09:25 Hermann ***@***.***> wrote:
@mjcarroll <https://github.com/mjcarroll> Because you are the most recent
maintainer who merged something in this repository, any update for this PR?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#184?email_source=notifications&email_token=AACEJFID2E4PUT2D7TRIAILQ6RWFZA5CNFSM4DYZAHS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJKU3KQ#issuecomment-576015786>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACEJFL4KDGGJYTA3WRO6WDQ6RWFZANCNFSM4DYZAHSQ>
.
|
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) { |
There was a problem hiding this comment.
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 .
This PR can be closed, since #358 was finally merged. |
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.