GSoC2011SfM
0.1
Google Summer of Code 2011: Structure from motion
|
This struct is used by boost::thread object to compute match. I used some semaphore to ensure the matching process work well. More...
#include <Boost_Matching.h>
Public Member Functions | |
CREATE_STATIC_MUTEX (thread_concurr) | |
Used to start as many thread as processors. | |
CREATE_STATIC_MUTEX (thread_unicity) | |
Used around critical sections. | |
MatchingThread (cv::Ptr< SequenceAnalyzer > seq_analyser, unsigned int i) | |
void | operator() () |
Public Attributes | |
unsigned int | i |
Index of source image. This image will be matched against every other. | |
cv::Ptr< SequenceAnalyzer > | seq_analyser |
This object contains every sequence related info (images, points, tracks...) | |
Static Public Attributes | |
static size_t | size_list |
size of list images of points. It's the same for every thread, so set once for every thread before runing computation. | |
static std::vector< cv::Mat > | masks |
List of mask to hide some points in the matching computation. | |
static std::vector< cv::Ptr < PointsToTrack > > * | matches_ = NULL |
List of every Points for track (points of other images to match) | |
static unsigned int | mininum_points_matches = 50 |
Minimum matches between two images to accept the matches. | |
static PointsMatcher * | match_algorithm = NULL |
The algorithm to use for matching. | |
static double | total_matches = 0 |
Total of matches where are trying to find. | |
static double | current_match_ = 0 |
Current iteration of algorithm. | |
static bool | print_progress_ = true |
If true, the progress will be shown. |
This struct is used by boost::thread object to compute match. I used some semaphore to ensure the matching process work well.
Definition at line 17 of file Boost_Matching.h.
OpencvSfM::MatchingThread::MatchingThread | ( | cv::Ptr< SequenceAnalyzer > | seq_analyser, |
unsigned int | i | ||
) |
Constructor of a thread.
seq_analyser | the sequence related infos |
i | Index of source image. This image will be matched against every other |
Definition at line 25 of file Boost_Matching.cpp.
void OpencvSfM::MatchingThread::operator() | ( | ) |
Thread implementation...
Definition at line 33 of file Boost_Matching.cpp.