#include <vector>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/features2d/features2d.hpp>
#include <opencv2/nonfree/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <sstream>
#include <algorithm>
Go to the source code of this file.
Typedefs | |
typedef vector< float > | Descriptor |
Functions | |
void | findMatches (vector< Descriptor > &descriptors1, vector< Descriptor > &descriptors2, vector< int > &matches1, vector< int > &matches2) |
void | improvedFindMatches (vector< Descriptor > &descriptors1, vector< Descriptor > &descriptors2, vector< int > &matches1, vector< int > &matches2) |
Improved matching algorithm for Question 5.3. | |
int | main (int argc, char **argv) |
int | ratioTest (Descriptor &a, vector< Descriptor > &bList, double threshold) |
double | SSD (Descriptor &a, Descriptor &b) |
Variables | |
static const bool | DRAW_KEYPOINTS = false |
typedef vector<float> Descriptor |
Definition at line 47 of file feature_tracker.cpp.
void findMatches | ( | vector< Descriptor > & | descriptors1, |
vector< Descriptor > & | descriptors2, | ||
vector< int > & | matches1, | ||
vector< int > & | matches2 | ||
) |
Definition at line 114 of file feature_tracker.cpp.
void improvedFindMatches | ( | vector< Descriptor > & | descriptors1, |
vector< Descriptor > & | descriptors2, | ||
vector< int > & | matches1, | ||
vector< int > & | matches2 | ||
) |
Improved matching algorithm for Question 5.3.
improvedFindMatches
descriptors1 | List of descriptors from image 1 |
descriptors2 | List of descriptors from image 2 |
matches1 | Indexes of matching points in image 1 (Returned) |
matches2 | Indexes of matching points in image 2 (Returned) |
Definition at line 138 of file feature_tracker.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 169 of file feature_tracker.cpp.
int ratioTest | ( | Descriptor & | a, |
vector< Descriptor > & | bList, | ||
double | threshold | ||
) |
Definition at line 77 of file feature_tracker.cpp.
double SSD | ( | Descriptor & | a, |
Descriptor & | b | ||
) |
Definition at line 56 of file feature_tracker.cpp.
const bool DRAW_KEYPOINTS = false [static] |
Definition at line 48 of file feature_tracker.cpp.