Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am trying to use ximgproc library in opencv 3.0.0 But i get an error.


fatal error: opencv2/ximgproc.hpp: No such file or directory.

when i saw the usr/lib/include directory there was no file called ximgproc.hpp

i downloaded the file opencv_contrib from github and follwed the instructions there to cmake the library.


I used the following cmake command

cmake -DOPENCV_EXTRA_MODULES_PATH=/home/iiith/Desktop/vision/opencv/opencv_contrib/modules -DBUILD_opencv_legacy=OFF -DBUILD_opencv_bioinspired=OFF -DBUILD_opencv_adas=OFF -DBUILD_opencv_bgsegm=OFF -DBUILD_opencv_ccalib=OFF -DBUILD_opencv_datasets=OFF -DBUILD_opencv_datasetstools=OFF -DBUILD_opencv_face=OFF -DBUILD_opencv_latentsvm=OFF -DBUILD_opencv_line_descriptor=OFF -DBUILD_opencv_matlab=OFF -DBUILD_opencv_optflow=OFF -DBUILD_opencv_reg=OFF -DBUILD_opencv_rgbd=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_surface_matching=OFF -DBUILD_opencv_text=OFF -DBUILD_opencv_tracking=OFF -DBUILD_opencv_xfeatures2d=OFF -DBUILD_opencv_stitching=OFF /usr/local ..

i got error as shown below. The first error in the image is regarding the cmake of the library. second error is regarding ximgproc.hpp header file in the code.image description


NOTE: I have multiple opencvs installed one with ros-hydro(2.4.9) and one is opencv 3.0.0