GSoC2011SfM
0.1
Google Summer of Code 2011: Structure from motion
|
00001 #ifndef _GSOC_SFM_BOOST_THREAD_H 00002 #define _GSOC_SFM_BOOST_THREAD_H 1 00003 00004 #include "macro.h" //SFM_EXPORTS 00005 00006 #include <vector> 00007 #include "opencv2/core/core.hpp" 00008 00009 #include "SequenceAnalyzer.h" 00010 00011 namespace OpencvSfM{ 00012 00017 struct MatchingThread{ 00018 unsigned int i; 00019 cv::Ptr<SequenceAnalyzer> seq_analyser; 00020 00021 static size_t size_list; 00022 static std::vector< cv::Mat > masks; 00023 static std::vector< cv::Ptr< PointsToTrack > >* matches_; 00024 static unsigned int mininum_points_matches; 00025 static PointsMatcher* match_algorithm; 00026 static double total_matches; 00027 static double current_match_; 00028 static bool print_progress_; 00029 00030 //semaphore to synchronize threads: 00031 CREATE_STATIC_MUTEX( thread_concurr ); 00032 CREATE_STATIC_MUTEX( thread_unicity ); 00033 00039 MatchingThread(cv::Ptr<SequenceAnalyzer> seq_analyser,unsigned int i); 00040 00044 void operator()(); 00045 }; 00046 00047 00048 } 00049 00050 #endif