Ask Your Question
0

blockmatching.h:0: Note: No relevant classes found.

asked 2016-08-27 01:59:33 -0600

peter_cz gravatar image

Dears,

I'm trying to use OpenCVBM application from https://github.com/DLuensch/StereoVis... that use OpenCV but by compiling I am getting:

pb@pb:~/work/StereoVision-ADCensus-master/OpenCVBM/build$ make
[  6%] Generating ui_blockmatchingimage.h
[ 13%] Generating src/moc_OpenCVBMWindow.cxx
[ 20%] Generating src/moc_blockmatchingimage.cxx
[ 26%] Generating src/moc_blockmatching.cxx
/home/r59400/work/StereoVision-ADCensus-master/OpenCVBM/src/blockmatching.h:0: Note: No relevant classes found. No output generated.
[ 33%] Generating src/moc_sgblockmatching.cxx
/home/work/StereoVision-ADCensus-master/OpenCVBM/src/sgblockmatching.h:0: Note: No relevant classes found. No output generated.
[ 40%] Generating ui_OpenCVBMWindow.h
Scanning dependencies of target OpenCVBM
[ 46%] Building CXX object CMakeFiles/OpenCVBM.dir/src/main.cpp.o
[ 53%] Building CXX object CMakeFiles/OpenCVBM.dir/src/OpenCVBMWindow.cpp.o
[ 60%] Building CXX object CMakeFiles/OpenCVBM.dir/src/blockmatchingimage.cpp.o
[ 66%] Building CXX object CMakeFiles/OpenCVBM.dir/src/blockmatching.cpp.o
/home/r59400/work/StereoVision-ADCensus-master/OpenCVBM/src/blockmatching.cpp: In member function ‘cv::Mat BlockMatching::updateBM()’:
/home/r59400/work/StereoVision-ADCensus-master/OpenCVBM/src/blockmatching.cpp:165:13: error: base operand of ‘->’ has non-pointer type ‘cv::StereoBM’
     this->bm->compute(this->imageLeft, this->imageRight, res);
             ^
make[2]: *** [CMakeFiles/OpenCVBM.dir/src/blockmatching.cpp.o] Error 1
make[1]: *** [CMakeFiles/OpenCVBM.dir/all] Error 2
make: *** [all] Error 2

Do you have any advice what's root-cause of this? I would appreciate your help.

Thank you.

edit retag flag offensive close merge delete

Comments

which opencv version do you use ? (last err looks like a version conflict)

berak gravatar imageberak ( 2016-08-27 04:34:51 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2016-08-27 04:52:54 -0600

berak gravatar image

it seems, you're compiling with opencv2.4, and the authors forgot to add a version check.

something like this should fix it.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-08-27 01:59:33 -0600

Seen: 935 times

Last updated: Aug 27 '16