Ask Your Question
0

Error while building package for ros

asked 2015-03-25 08:25:45 -0600

I am using opencv 3

[ 40%] Building CXX object CMakeFiles/stereo_image_proc.dir/src/libstereo_image_proc/processor.cpp.o
In file included from 

 /Users/Matt/ros_catkin_ws/src/image_pipeline/stereo_image_proc/src/libstereo_image_proc/processor.cpp:35:
 /Users/Matt/ros_catkin_ws/src/image_pipeline/stereo_image_proc/include/stereo_image_proc/processor.h:67:22: error: 
    use of undeclared identifier 'createStereoBM'
    block_matcher_ = createStereoBM();
edit retag flag offensive close merge delete

Comments

I am sorry but this is an OpenCV forum and not a ROS forum, since they are wrapping OpenCV into a ROS node, I guess you better pose your questions here.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-03-25 09:11:53 -0600 )edit
1

I made a post on the ROS forum, but since the root of the problem seems to be due to the opencv library I assumed that this would be a better place to post.

Mr. CEO gravatar imageMr. CEO ( 2015-03-25 17:52:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-26 03:00:08 -0600

Well actually it seems that there is an include wrong but those header files are not standard OpenCV header files. What you need to do is open that processor.h file and add an include to the module that contains createStereoBM. As you can see here this function is now in OpenCV3.0 inside the cuda namespace, so first check whether you got a using namespace cv::cuda; command in your header OR add cuda::createStereoBM in the file. Probably that is your problem, the fact that the module and header structure changed.

edit flag offensive delete link more

Comments

I am now getting the error

no member named 'createStereoBM' in namespace 'cv::cuda'

If it makes a difference I am using the homebrewed version of opencv3

Mr. CEO gravatar imageMr. CEO ( 2015-03-26 13:00:19 -0600 )edit

Did you include the correct header files?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-03-27 03:19:58 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2015-03-25 08:25:45 -0600

Seen: 320 times

Last updated: Mar 25 '15