Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do I build example_sfm_scene_reconstruction?

I am trying to evaluate the opencv_contrib/scene_reconstruction sample, but cannot figure out how to compile it on OSX. I have cloned opencv 3.1.0 and opencv_contrib 3.1.0.

Here is my current cmake command, run from ~/projects/opencv/build:

cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/Users/gwendell/projects/opencv_contrib/modules -D BUILD_EXAMPLES=ON -D BUILD_DOCS=ON ..

sfm is listed in the modules to be built:

--   OpenCV modules:
--     To be built:                 core flann imgproc ml photo reg surface_matching video dnn fuzzy imgcodecs shape videoio highgui objdetect plot superres ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib datasets java rgbd stereo structured_light tracking videostab xfeatures2d ximgproc aruco optflow sfm stitching python2

After running make, bin has 108 example_* executables, as well as opencv_test_sfm, but not example_sfm_scene_reconstruction. Am I missing a cmake flag, or some other configuration? Thank you in advance.