Ask Your Question
0

Do all of the OpenCV functions work fine on ROS?

asked 2016-03-10 05:36:29 -0500

Henschel.X gravatar image

I decide to do some image processing on ROS, and first I did the same job on VS2013 with OpenCV2.4.9 on windows, I am wondering if it is true that almost every functions like cvCvtColor or every data type including cv::Mat works fine on ROS, I have checked the opencv version on my Ubuntu and it returns 2.4.9 which is why I used 2.4.9 on windows. Does anyone know whether it is a good idea to try on VS first and then make the rest work on ROS. Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-10 08:10:21 -0500

ROS and OpenCV are two seperate things, which in general do not interfere. So yes, everything will work on ROS.

The only problem (I can think of) that you might get is with the OpenCV version. If you install a ROS package that depends on OpenCV 3, it might be hard to use OpenCV 2.x instead (if you insist on using 2.x in your code).

edit flag offensive delete link more

Comments

How can I know about my ROS package depends on OpenCV 2 or 3 may I ask?

Henschel.X gravatar image Henschel.X  ( 2016-03-10 22:28:36 -0500 )edit

apt-cache rdepends <package_name> for those installable from the repositories. For packages "from source": rosdep keys <package_name>, but that may be incomplete and you might need to check CMakeLists.txt for something like find_package(OpenCV ...)

Felix Endres gravatar image Felix Endres  ( 2016-03-11 10:36:14 -0500 )edit

Thank you very much!

Henschel.X gravatar image Henschel.X  ( 2016-03-13 20:47:00 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-03-10 05:36:29 -0500

Seen: 88 times

Last updated: Mar 10 '16