track
就是多幅图像之间的特征点对应。
using namespace openMVG::matching;
// pairwise matches container:
PairWiseMatches map_Matches;
// Fil the pairwise correspondeces or load a series of pairwise matches from a file
PairedIndMatchImport("matches.f.txt", map_Matches);
//---------------------------------------
// Compute tracks from pairwise matches
//---------------------------------------
TracksBuilder tracksBuilder;
tracks::STLMAPTracks map_tracks; // The track container
tracksBuilder.Build(map_Matches); // Build: Efficient fusion of correspondences
tracksBuilder.Filter(); // Filter: Remove track that have conflict
tracksBuilder.ExportToSTL(map_tracks); // Build tracks with STL compliant type
// In order to visit all the tracks, follow this code:
for (tracks::STLMAPTracks::const_iterator iterT = map_tracks.begin();
iterT != map_tracks.end(); ++ iterT)
{
const IndexT trackId = iterT->first;
const tracks::submapTrack & track = iterT->second;
for ( tracks::submapTrack::const_iterator iterTrack = track.begin();
iterTrack != track.end(); ++iterTrack)
{
const IndexT imageId = iterTrack->first;
const IndexT featId = iterTrack->second;
// Get the feature point
}
}