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

CV name space error when when building dvs_rendere #99

Open
meera-m-t opened this issue Mar 29, 2020 · 1 comment
Open

CV name space error when when building dvs_rendere #99

meera-m-t opened this issue Mar 29, 2020 · 1 comment

Comments

@meera-m-t
Copy link

Hello,
When doing a catkin build of dvs_renderer I get the following error saying that undistort is not a member of opencv. I installed all the dependencies in the README.md.

Errors     << dvs_renderer:make /home/sameera/catkin_ws/logs/dvs_renderer/build.make.000.log                                                                                                               
/home/username/catkin_ws/src/rpg_dvs_ros/dvs_renderer/src/renderer.cpp: In member function ‘void dvs_renderer::Renderer::eventsCallback(const ConstPtr&)’:
/home/username/catkin_ws/src/rpg_dvs_ros/dvs_renderer/src/renderer.cpp:193:11: error: ‘undistort’ is not a member of ‘cv’
       cv::undistort(cv_image.image, cv_image2.image, camera_matrix_, dist_coeffs_);

Can you please specify the dependencies for openCV and what I am missing?

@max11gen
Copy link

max11gen commented Apr 9, 2020

I had the same problem. In my case it was enough to include opencv's calib3d header in renderer.h. So put #include <opencv2/calib3d.hpp> in renderer.h and see if it works.

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

No branches or pull requests

2 participants