MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
Classes | Static Public Member Functions | List of all members
sfm::Matching Class Reference

#include <matching.h>

Classes

struct  Options
 Feature matching options. More...
 
struct  Result
 Feature matching result reported as two lists, each with indices in the other set. More...
 

Static Public Member Functions

static void combine_results (Result const &sift_result, Result const &surf_result, Matching::Result *result)
 Combines matching results of different descriptors.
 
static int count_consistent_matches (Result const &matches)
 Function that counts the number of valid matches.
 
template<typename T >
static void oneway_match (Options const &options, T const *set_1, int set_1_size, T const *set_2, int set_2_size, std::vector< int > *result)
 Matches all elements in set 1 to all elements in set 2.
 
static void remove_inconsistent_matches (Result *matches)
 This function removes inconsistent matches.
 
template<typename T >
static void twoway_match (Options const &options, T const *set_1, int set_1_size, T const *set_2, int set_2_size, Result *matches)
 Matches all elements in set 1 to all elements in set 2 and vice versa.
 

Detailed Description

Definition at line 22 of file matching.h.

Member Function Documentation

◆ combine_results()

void sfm::Matching::combine_results ( Matching::Result const &  sift_result,
Matching::Result const &  surf_result,
Matching::Result result 
)
static

Combines matching results of different descriptors.

Definition at line 50 of file matching.cc.

◆ count_consistent_matches()

int sfm::Matching::count_consistent_matches ( Matching::Result const &  matches)
static

Function that counts the number of valid matches.

Definition at line 39 of file matching.cc.

◆ oneway_match()

template<typename T >
void sfm::Matching::oneway_match ( Options const &  options,
T const *  set_1,
int  set_1_size,
T const *  set_2,
int  set_2_size,
std::vector< int > *  result 
)
static

Matches all elements in set 1 to all elements in set 2.

It reports as result for each element of set 1 to which element in set 2 it maches. An unsuccessful match which did not pass one of the thresholds is indicated with a negative index.

Definition at line 116 of file matching.h.

◆ remove_inconsistent_matches()

void sfm::Matching::remove_inconsistent_matches ( Matching::Result matches)
static

This function removes inconsistent matches.

A consistent match of a feature F1 in the first image to feature F2 in the second image requires that F2 also matches to F1.

Definition at line 19 of file matching.cc.

◆ twoway_match()

template<typename T >
void sfm::Matching::twoway_match ( Options const &  options,
T const *  set_1,
int  set_1_size,
T const *  set_2,
int  set_2_size,
Result matches 
)
static

Matches all elements in set 1 to all elements in set 2 and vice versa.

It reports matching results in two lists with indices. Unsuccessful matches are indicated with a negative index.

Definition at line 150 of file matching.h.


The documentation for this class was generated from the following files: