#include <PairMatchSet2D3D.h>
Public Types | |
enum | { use_existing = true } |
enum | { NoMatch = -1 } |
Public Member Functions | |
PairMatchSet2D3D () | |
PairMatchSet2D3D (const HomgInterestPointSet *corners, vcl_vector< HomgPoint3D > *structure) | |
PairMatchSet2D3D (const PairMatchSet2D3D &that) | |
PairMatchSet2D3D & | operator= (const PairMatchSet2D3D &) |
~PairMatchSet2D3D () | |
bool | is_set () const |
void | set (const HomgInterestPointSet *corners, vcl_vector< HomgPoint3D > *structure) |
void | set (int corners_size, vcl_vector< HomgPoint3D > *structure) |
void | set_from (const PairMatchSet2D3D &otherframe_to_3d, const PairMatchSetCorner &otherframe_to_this) |
const HomgPoint2D & | get_point_2d (int i1) const |
const HomgPoint3D & | get_point_3d (int i2) const |
const HomgInterestPointSet * | get_corners () const |
Return the set of corners within which the i1 indices point. | |
HomgMetric | get_conditioner () const |
Return the conditioner for the corners. | |
vcl_vector< HomgPoint3D > * | get_structure () const |
Return the projective structure within which the i2 indices point. | |
void | set_size (unsigned size) |
Set the maximum allowed value of i1 to size. | |
bool | add_match (int i1, int i2) |
Add the pair (i1, i2) to the match set. | |
int | get_match_12 (int i1) const |
Return any match for i1. | |
int | get_match_21 (int i2) const |
Return any match for i2. | |
void | clear_match_1 (int i1) |
Remove any match for i1. | |
void | set_identity () |
Set this match set to contain matches (i,i) for i=0..size. | |
unsigned int | count () const |
void | update_feature_match_data () |
void | clear () |
Empty this match set. | |
void | update (const vcl_vector< bool > &inliers) |
int | size () const |
Return the maximum allowed value of i1. | |
int | compute_match_count () |
Count the number of matches in this set. | |
void | print_brief (vcl_ostream &s) const |
Summarize matches on stream. | |
void | print_brief () const |
Summarize matches on cout. | |
void | write_ascii (vcl_ostream &s) const |
Write matches in ASCII to stream. | |
bool | read_ascii (vcl_istream &s) |
bool | get_match (int at, int *i1, int *i2) const |
Static Public Member Functions | |
static bool | matchp (int i) |
Return true if i is not the "NoMatch" value. | |
Private Attributes | |
const HomgInterestPointSet * | corners_ |
vcl_vector< HomgPoint3D > * | structure_ |
Friends | |
vcl_ostream & | operator<< (vcl_ostream &s, const PairMatchSet &cc) |
vcl_istream & | operator>> (vcl_istream &s, PairMatchSet &cc) |
Definition at line 21 of file PairMatchSet2D3D.h.
anonymous enum [inherited] |
Definition at line 29 of file MatchSet.h.
anonymous enum [inherited] |
Definition at line 41 of file PairMatchSet.h.
PairMatchSet2D3D::PairMatchSet2D3D | ( | ) |
Definition at line 13 of file PairMatchSet2D3D.cxx.
PairMatchSet2D3D::PairMatchSet2D3D | ( | const HomgInterestPointSet * | corners, |
vcl_vector< HomgPoint3D > * | structure | ||
) |
Definition at line 27 of file PairMatchSet2D3D.cxx.
PairMatchSet2D3D::PairMatchSet2D3D | ( | const PairMatchSet2D3D & | that | ) |
Definition at line 20 of file PairMatchSet2D3D.cxx.
PairMatchSet2D3D::~PairMatchSet2D3D | ( | ) |
Definition at line 40 of file PairMatchSet2D3D.cxx.
bool PairMatchSet::add_match | ( | int | i1, |
int | i2 | ||
) | [inherited] |
Add the pair (i1, i2) to the match set.
If i1 had an existing match it is overwritten.
Definition at line 58 of file PairMatchSet.cxx.
void PairMatchSet::clear | ( | ) | [inherited] |
Empty this match set.
Definition at line 131 of file PairMatchSet.cxx.
void PairMatchSet::clear_match_1 | ( | int | i1 | ) | [inherited] |
Remove any match for i1.
Specifically, remove tuples whose first element is i1.
Definition at line 75 of file PairMatchSet.cxx.
int PairMatchSet::compute_match_count | ( | ) | [inherited] |
Count the number of matches in this set.
Definition at line 147 of file PairMatchSet.cxx.
unsigned int PairMatchSet::count | ( | ) | const [inline, inherited] |
Definition at line 60 of file PairMatchSet.h.
HomgMetric PairMatchSet2D3D::get_conditioner | ( | ) | const |
Return the conditioner for the corners.
Definition at line 73 of file PairMatchSet2D3D.cxx.
const HomgInterestPointSet * PairMatchSet2D3D::get_corners | ( | ) | const |
Return the set of corners within which the i1 indices point.
Definition at line 97 of file PairMatchSet2D3D.cxx.
bool PairMatchSet::get_match | ( | int | at, |
int * | i1, | ||
int * | i2 | ||
) | const [inherited] |
Definition at line 119 of file PairMatchSet.cxx.
int PairMatchSet::get_match_12 | ( | int | i1 | ) | const [inherited] |
Return any match for i1.
Specifically, return the second element of any tuple whose first element is i1.
Definition at line 92 of file PairMatchSet.cxx.
int PairMatchSet::get_match_21 | ( | int | i2 | ) | const [inherited] |
Return any match for i2.
Specifically, return the first element of any tuple whose second element is i2. This is currently O(n) in the number of matches, consider adding an index to this class if you use it a lot.
Definition at line 110 of file PairMatchSet.cxx.
const HomgPoint2D & PairMatchSet2D3D::get_point_2d | ( | int | i1 | ) | const |
Definition at line 82 of file PairMatchSet2D3D.cxx.
const HomgPoint3D & PairMatchSet2D3D::get_point_3d | ( | int | i2 | ) | const |
Definition at line 92 of file PairMatchSet2D3D.cxx.
vcl_vector<HomgPoint3D>* PairMatchSet2D3D::get_structure | ( | ) | const [inline] |
Return the projective structure within which the i2 indices point.
Definition at line 53 of file PairMatchSet2D3D.h.
bool PairMatchSet2D3D::is_set | ( | ) | const [inline] |
Definition at line 37 of file PairMatchSet2D3D.h.
static bool MatchSet::matchp | ( | int | i | ) | [inline, static, inherited] |
Return true if i is not the "NoMatch" value.
Definition at line 32 of file MatchSet.h.
PairMatchSet2D3D & PairMatchSet2D3D::operator= | ( | const PairMatchSet2D3D & | ) |
Definition at line 33 of file PairMatchSet2D3D.cxx.
void PairMatchSet::print_brief | ( | vcl_ostream & | s | ) | const [inherited] |
Summarize matches on stream.
Definition at line 243 of file PairMatchSet.cxx.
void PairMatchSet::print_brief | ( | ) | const [inherited] |
Summarize matches on cout.
Definition at line 252 of file PairMatchSet.cxx.
bool PairMatchSet::read_ascii | ( | vcl_istream & | s | ) | [inherited] |
Definition at line 203 of file PairMatchSet.cxx.
void PairMatchSet2D3D::set | ( | const HomgInterestPointSet * | corners, |
vcl_vector< HomgPoint3D > * | structure | ||
) |
Definition at line 44 of file PairMatchSet2D3D.cxx.
void PairMatchSet2D3D::set | ( | int | corners_size, |
vcl_vector< HomgPoint3D > * | structure | ||
) |
Definition at line 51 of file PairMatchSet2D3D.cxx.
void PairMatchSet2D3D::set_from | ( | const PairMatchSet2D3D & | otherframe_to_3d, |
const PairMatchSetCorner & | otherframe_to_this | ||
) |
Definition at line 58 of file PairMatchSet2D3D.cxx.
void PairMatchSet::set_identity | ( | ) | [inherited] |
Set this match set to contain matches (i,i) for i=0..size.
Definition at line 139 of file PairMatchSet.cxx.
void PairMatchSet::set_size | ( | unsigned | size | ) | [inherited] |
Set the maximum allowed value of i1 to size.
Definition at line 164 of file PairMatchSet.cxx.
int PairMatchSet::size | ( | ) | const [inherited] |
Return the maximum allowed value of i1.
Definition at line 158 of file PairMatchSet.cxx.
void PairMatchSet::update | ( | const vcl_vector< bool > & | inliers | ) | [inherited] |
Definition at line 170 of file PairMatchSet.cxx.
void PairMatchSet::update_feature_match_data | ( | ) | [inherited] |
Definition at line 51 of file PairMatchSet.cxx.
void PairMatchSet::write_ascii | ( | vcl_ostream & | s | ) | const [inherited] |
Write matches in ASCII to stream.
Definition at line 188 of file PairMatchSet.cxx.
vcl_ostream& operator<< | ( | vcl_ostream & | s, |
const PairMatchSet & | cc | ||
) | [friend, inherited] |
Definition at line 197 of file PairMatchSet.cxx.
vcl_istream& operator>> | ( | vcl_istream & | s, |
PairMatchSet & | cc | ||
) | [friend, inherited] |
Definition at line 236 of file PairMatchSet.cxx.
const HomgInterestPointSet* PairMatchSet2D3D::corners_ [private] |
Definition at line 56 of file PairMatchSet2D3D.h.
vcl_vector<HomgPoint3D>* PairMatchSet2D3D::structure_ [private] |
Definition at line 57 of file PairMatchSet2D3D.h.