Skip to content

Commit

Permalink
Merge pull request #4 from udovicic/master
Browse files Browse the repository at this point in the history
FIx in CMakeLists.txt & FindCameraMatrices.h
  • Loading branch information
royshil committed Feb 1, 2013
2 parents 57ac6d9 + 0156977 commit 3d93bfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions SfMToyLib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
cmake_minimum_required(VERSION 2.6)

if(EIGEN_INCLUDE_DIRS) # if compiling with PCL, it will bring Eigen with it
message(STATUS "SfMToyLib will use Eigen")
include_directories(${EIGEN_INCLUDE_DIRS})
add_definitions( -DUSE_EIGEN )
endif()

set(SSBA_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/3rdparty/SSBA-3.0/build" CACHE PATH "Directory to find SSBA libs")
set(SSBA_LIBRARY_DIR "${CMAKE_SOURCE_DIR}/../3rdparty/SSBA-3.0/build" CACHE PATH "Directory to find SSBA libs")

link_directories(
${SSBA_LIBRARY_DIR}
Expand Down Expand Up @@ -49,4 +51,4 @@ if(APPLE)

set_target_properties(SfMToyLibrary PROPERTIES COMPILE_FLAGS "-fopenmp")
set_target_properties(SfMToyLibrary PROPERTIES LINK_FLAGS "-fopenmp")
endif()
endif()
6 changes: 4 additions & 2 deletions SfMToyLib/FindCameraMatrices.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ cv::Mat GetFundamentalMat( const std::vector<cv::KeyPoint>& imgpts1,
const std::vector<cv::KeyPoint>& imgpts2,
std::vector<cv::KeyPoint>& imgpts1_good,
std::vector<cv::KeyPoint>& imgpts2_good,
std::vector<cv::DMatch>& matches,
const cv::Mat& = cv::Mat(), const cv::Mat& = cv::Mat()
std::vector<cv::DMatch>& matches
#ifdef __SFM__DEBUG__
,const Mat& img_1, const Mat& img_2
#endif
);

bool FindCameraMatrices(const cv::Mat& K,
Expand Down

0 comments on commit 3d93bfd

Please sign in to comment.