tsdconseil / opencv-demonstrator

OpenCV demonstrator (GUI)
http://www.tsdconseil.fr/log/opencv/demo/index-en.html
GNU Lesser General Public License v3.0
141 stars 57 forks source link

Issue during build: createSuperpixelSLIC and SLICO not members of cv::ximgproc #75

Closed Dansvidania closed 6 years ago

Dansvidania commented 7 years ago

Hello, and thank you for the library!

Unfortunately I was not able to complete the build of the demonstrator: the build fails with the following error

Compiling c++ file src/demo-items/segmentation.cc... src/demo-items/segmentation.cc: In member function ‘virtual int DemoSuperpixels::proceed(OCVDemoItem::OCVDemoItemInput&, OCVDemoItem::OCVDemoItemOutput&)’: src/demo-items/segmentation.cc:13:15: error: ‘createSuperpixelSLIC’ is not a member of ‘cv::ximgproc’ auto slic = cv::ximgproc::createSuperpixelSLIC( ^ src/demo-items/segmentation.cc:14:24: error: ‘SLICO’ is not a member of ‘cv::ximgproc’ input.images[0], cv::ximgproc::SLICO, ^ ../libcutil/data/std-makefile-defs:186: recipe for target 'build/debug/segmentation.o' failed make[1]: [build/debug/segmentation.o] Error 1 make[1]: Leaving directory '/home/dan/opencv-demonstrator/ocvdemo' Makefile:33: recipe for target 'linux' failed make: [linux] Error 2

I would appreciate some guidance, can't wait to try the library :)

juliena82 commented 7 years ago

Hello, Maybe it is because you don't have the opencv contrib repo installed? I am not 100 % sure, but I think that this function are not in the main opencv repo.