#include <mvl_multi_view_matches.h>
Public Types | |
| typedef vcl_map< unsigned int, unsigned int, vcl_less < unsigned int > > | Map |
Public Member Functions | |
| mvl_multi_view_matches (char const *filename) | |
| mvl_multi_view_matches (vcl_vector< int > const &views) | |
| mvl_multi_view_matches (int start, int end, int step=1) | |
| mvl_multi_view_matches (int N) | |
| ~mvl_multi_view_matches () | |
| void | set_views (vcl_vector< int > const &views) |
| Set the view indices to which this match set will refer. | |
| void | set_views (int start, int end, int step=1) |
| void | set_views (int N) |
| void | add_pair (int view1, int corner1, int view2, int corner2) |
| Merge-in single match tracks. The view indices are real (i.e on-disk) indices. | |
| void | add_triplet (int view1, int corner1, int view2, int corner2, int view3, int corner3) |
| void | add_track (vcl_vector< int > const &views, vcl_vector< int > const &corners) |
| void | add_matches (mvl_multi_view_matches const &matches) |
| Merge-in a whole set of matches (possibly from a different set of views). | |
| int | num_views () const |
| int | num_tracks () const |
| Map & | get_track (int i) |
| Get the <frame,corner> map for track i (frame = track.first, corner = track.second). | |
| vcl_vector< int > & | get_view_indices () |
| Get the mapping from track frame to real view index (real_view_index = get_view_indices[track.first]). | |
| vcl_ostream & | print (vcl_ostream &) const |
| Standard I/O. | |
| vcl_istream & | read (vcl_istream &) |
| vcl_ostream & | write (vcl_ostream &) const |
| void | read (char const *file) |
| Convenience. | |
| void | write (char const *file) const |
Protected Member Functions | |
| void | init () |
| void | update_maps (int track_index) |
| void | remove_maps (int track_index) |
Protected Attributes | |
| vcl_vector< int > | views_ |
| Map | view_to_internal_map_ |
| vcl_vector< Map > | tracks_ |
| vcl_vector< Map > | corner_to_track_maps_ |
Definition at line 28 of file mvl_multi_view_matches.h.
| typedef vcl_map<unsigned int, unsigned int, vcl_less<unsigned int> > mvl_multi_view_matches::Map |
Definition at line 31 of file mvl_multi_view_matches.h.
| mvl_multi_view_matches::mvl_multi_view_matches | ( | char const * | filename | ) |
Definition at line 16 of file mvl_multi_view_matches.cxx.
| mvl_multi_view_matches::mvl_multi_view_matches | ( | vcl_vector< int > const & | views | ) |
Definition at line 21 of file mvl_multi_view_matches.cxx.
| mvl_multi_view_matches::mvl_multi_view_matches | ( | int | start, |
| int | end, | ||
| int | step = 1 |
||
| ) |
Definition at line 26 of file mvl_multi_view_matches.cxx.
| mvl_multi_view_matches::mvl_multi_view_matches | ( | int | N | ) |
Definition at line 31 of file mvl_multi_view_matches.cxx.
| mvl_multi_view_matches::~mvl_multi_view_matches | ( | ) |
Definition at line 37 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::add_matches | ( | mvl_multi_view_matches const & | matches | ) |
Merge-in a whole set of matches (possibly from a different set of views).
Definition at line 202 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::add_pair | ( | int | view1, |
| int | corner1, | ||
| int | view2, | ||
| int | corner2 | ||
| ) |
Merge-in single match tracks. The view indices are real (i.e on-disk) indices.
Definition at line 73 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::add_track | ( | vcl_vector< int > const & | views, |
| vcl_vector< int > const & | corners | ||
| ) |
Definition at line 97 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::add_triplet | ( | int | view1, |
| int | corner1, | ||
| int | view2, | ||
| int | corner2, | ||
| int | view3, | ||
| int | corner3 | ||
| ) |
Definition at line 84 of file mvl_multi_view_matches.cxx.
| Map& mvl_multi_view_matches::get_track | ( | int | i | ) | [inline] |
Get the <frame,corner> map for track i (frame = track.first, corner = track.second).
Definition at line 57 of file mvl_multi_view_matches.h.
| vcl_vector<int>& mvl_multi_view_matches::get_view_indices | ( | ) | [inline] |
Get the mapping from track frame to real view index (real_view_index = get_view_indices[track.first]).
Definition at line 59 of file mvl_multi_view_matches.h.
| void mvl_multi_view_matches::init | ( | ) | [protected] |
Definition at line 63 of file mvl_multi_view_matches.cxx.
| int mvl_multi_view_matches::num_tracks | ( | ) | const [inline] |
Definition at line 54 of file mvl_multi_view_matches.h.
| int mvl_multi_view_matches::num_views | ( | ) | const [inline] |
Definition at line 53 of file mvl_multi_view_matches.h.
| vcl_ostream & mvl_multi_view_matches::print | ( | vcl_ostream & | s | ) | const |
Standard I/O.
Definition at line 226 of file mvl_multi_view_matches.cxx.
| vcl_istream & mvl_multi_view_matches::read | ( | vcl_istream & | s | ) |
Definition at line 237 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::read | ( | char const * | file | ) |
Convenience.
Definition at line 293 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::remove_maps | ( | int | track_index | ) | [protected] |
Definition at line 217 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::set_views | ( | vcl_vector< int > const & | views | ) |
Set the view indices to which this match set will refer.
Definition at line 41 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::set_views | ( | int | start, |
| int | end, | ||
| int | step = 1 |
||
| ) |
Definition at line 47 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::set_views | ( | int | N | ) |
Definition at line 55 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::update_maps | ( | int | track_index | ) | [protected] |
Definition at line 208 of file mvl_multi_view_matches.cxx.
| vcl_ostream & mvl_multi_view_matches::write | ( | vcl_ostream & | s | ) | const |
Definition at line 274 of file mvl_multi_view_matches.cxx.
| void mvl_multi_view_matches::write | ( | char const * | file | ) | const |
Definition at line 299 of file mvl_multi_view_matches.cxx.
vcl_vector<Map> mvl_multi_view_matches::corner_to_track_maps_ [protected] |
Definition at line 74 of file mvl_multi_view_matches.h.
vcl_vector<Map> mvl_multi_view_matches::tracks_ [protected] |
Definition at line 73 of file mvl_multi_view_matches.h.
Map mvl_multi_view_matches::view_to_internal_map_ [protected] |
Definition at line 72 of file mvl_multi_view_matches.h.
vcl_vector<int> mvl_multi_view_matches::views_ [protected] |
Definition at line 71 of file mvl_multi_view_matches.h.
1.7.5.1