stereo
Functions
/build/rock-master-18.09-perception-stereo-0.20161215/src/CMakeLists.txt File Reference

Functions

 include (FindPkgConfig) rock_find_pkgconfig(OPENCV REQUIRED opencv) if($
 
VERSION_LESS message (STATUS"found pre-2.4 OpenCV version") find_library(OPENCV_GPU_LIB NAMES opencv_gpu HINTS $
 
 if (NOT OPENCV_GPU_LIB) message(FATAL_ERROR"cannot find the opencv_gpu library in $
 
This is required endif () add_definitions(-DOPENCV_HAS_SURF) add_definitions(-DOPENCV_HAS_SIFT) add_definitions(-DOPENCV_HAS_SURF_GPU) else() message(STATUS"found post-2.4 OpenCV version in $
 
 find_file (OPENCV_HAS_NONFREE opencv2/nonfree/features2d.hpp PATHS ${OPENCV_INCLUDE_DIRS}) find_file(OPENCV_HAS_GPU opencv2/gpu/gpu.hpp PATHS $
 
 set (OPENCV_HAS_GPUMAT_IN_CORE TRUE) set(PSURF_NEEDS_LEGACY TRUE) if(OPENCV_HAS_NONFREE) add_definitions(-DOPENCV_HAS_SURF-DOPENCV_HAS_SIFT-DOPENCV_HAS_NONFREE) else() message(STATUS"the OpenCV version you have does not provide the non-free algorithms such has SURF and SIFT
 
 set (CMAKE_CXX_FLAGS"-msse3") rock_library(stereo SOURCES densestereo.cpp homography.cpp dense_stereo_types.cpp configuration.cpp psurf.cpp sparse_stereo.cpp ransac.cpp DEPS_PKGCONFIG opencv frame_helper libelas HEADERS densestereo.h dense_stereo_types.h sparse_stereo_types.h ransac.cpp homography.h store_vector.hpp psurf.h sparse_stereo.hpp) install(FILES $
 

Function Documentation

support for them will be disabled support for them will be disabled endif ( )
find_file ( OPENCV_HAS_NONFREE opencv2/nonfree/features2d.hpp PATHS ${OPENCV_INCLUDE_DIRS}  )
if ( NOT  OPENCV_GPU_LIB)
include ( FindPkgConfig  )
VERSION_LESS message ( STATUS"found pre-2.4 OpenCV version"  )
set ( OPENCV_HAS_GPUMAT_IN_CORE  TRUE)
set ( CMAKE_CXX_FLAGS"-msse3"  )