Skip to content
Snippets Groups Projects
Commit 9b0f60ae authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Merge remote-tracking branch 'origin/19-building-a-new-visual-odometry-system'...

Merge remote-tracking branch 'origin/19-building-a-new-visual-odometry-system' into 19-building-a-new-visual-odometry-system
parents 5d6c54f2 49fc8383
No related branches found
No related tags found
2 merge requests!36After cmake and const refactor,!28Resolve "Building a new visual odometry system"
......@@ -68,8 +68,12 @@ class WKeyPoint
};
// This map is frame specific and enables to recover a Wolf KeyPoint with a certain
// ID in a frame
typedef std::unordered_map<size_t, WKeyPoint> KeyPointsMap;
// This maps the IDs of the Wolf KeyPoints that are tracked from a frame to the other.
// It takes the ID of a WKeyPoint and returns the ID of its track in another Frame.
typedef std::unordered_map<size_t, size_t> TracksMap;
// Set ClassPtr, ClassConstPtr and ClassWPtr typedefs;
......
......@@ -125,11 +125,16 @@ void ProcessorVisualOdometry::preProcess()
// - ...
////////////////////////////////
// Tracks between last and incoming
// TracksMap between last and incoming
// Input: ID of Wkp in last. Output: ID of the tracked Wkp in incoming.
TracksMap tracks_last_incoming = kltTrack(img_last, img_incoming, mwkps_last, mwkps_incoming);
// Merge tracks to get tracks_origin_incoming
// TracksMap between origin and last
// Input: ID of Wkp in origin. Output: ID of the tracked Wkp in last.
TracksMap tracks_origin_last = capture_image_last_->getTracksOrigin();
// Merge tracks to get TracksMap between origin and incoming
// Input: ID of Wkp in origin. Output: ID of the tracked Wkp in incoming.
TracksMap tracks_origin_incoming = mergeTracks(tracks_origin_last, tracks_last_incoming);
// Outliers rejection with essential matrix
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment