Classes | Typedefs | Functions
gtsam::gtsfm Namespace Reference

Classes

struct  Keypoints
 

Typedefs

typedef Eigen::MatrixX2i CorrespondenceIndices
 
typedef DSFMap< IndexPairDSFMapIndexPair
 
using KeypointsVector = std::vector< Keypoints >
 
using MatchIndicesMap = std::map< IndexPair, CorrespondenceIndices >
 

Functions

static DSFMapIndexPair generateDSF (const MatchIndicesMap &matches)
 Generate the DSF to form tracks. More...
 
static SfmTrack2d trackFromIndexPairs (const std::set< IndexPair > &index_pair_set, const KeypointsVector &keypoints)
 Generate a single track from a set of index pairs. More...
 
static std::vector< SfmTrack2dtracksFromDSF (const DSFMapIndexPair &dsf, const KeypointsVector &keypoints)
 Generate tracks from the DSF. More...
 
std::vector< SfmTrack2dtracksFromPairwiseMatches (const MatchIndicesMap &matches, const KeypointsVector &keypoints, bool verbose)
 Creates a list of tracks from 2d point correspondences. More...
 

Typedef Documentation

◆ CorrespondenceIndices

typedef Eigen::MatrixX2i gtsam::gtsfm::CorrespondenceIndices

Definition at line 32 of file DsfTrackGenerator.h.

◆ DSFMapIndexPair

Definition at line 29 of file DsfTrackGenerator.cpp.

◆ KeypointsVector

using gtsam::gtsfm::KeypointsVector = typedef std::vector<Keypoints>

Definition at line 55 of file DsfTrackGenerator.h.

◆ MatchIndicesMap

Definition at line 58 of file DsfTrackGenerator.h.

Function Documentation

◆ generateDSF()

static DSFMapIndexPair gtsam::gtsfm::generateDSF ( const MatchIndicesMap matches)
static

Generate the DSF to form tracks.

Definition at line 32 of file DsfTrackGenerator.cpp.

◆ trackFromIndexPairs()

static SfmTrack2d gtsam::gtsfm::trackFromIndexPairs ( const std::set< IndexPair > &  index_pair_set,
const KeypointsVector keypoints 
)
static

Generate a single track from a set of index pairs.

Definition at line 55 of file DsfTrackGenerator.cpp.

◆ tracksFromDSF()

static std::vector<SfmTrack2d> gtsam::gtsfm::tracksFromDSF ( const DSFMapIndexPair dsf,
const KeypointsVector keypoints 
)
static

Generate tracks from the DSF.

Definition at line 73 of file DsfTrackGenerator.cpp.

◆ tracksFromPairwiseMatches()

std::vector< SfmTrack2d > GTSAM_EXPORT gtsam::gtsfm::tracksFromPairwiseMatches ( const MatchIndicesMap matches,
const KeypointsVector keypoints,
bool  verbose 
)

Creates a list of tracks from 2d point correspondences.

Creates a disjoint-set forest (DSF) and 2d tracks from pairwise matches. We create a singleton for union-find set elements from camera index of a detection and the index of that detection in that camera's keypoint list, i.e. (i,k).

Parameters
Mapfrom (i1,i2) image pair indices to (K,2) matrix, for K correspondence indices, from each image.
Length-Nlist of keypoints, for N images/cameras.

Definition at line 103 of file DsfTrackGenerator.cpp.



gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:16:35