Skip to content
Snippets Groups Projects

Resolve "Index snapshots by capture pointer instead of capture ID in TrackMatrix"

2 files
+ 29
20
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -63,12 +63,12 @@ typedef map<size_t, pair<FeatureBasePtr, FeatureBasePtr> > TrackMatches; // mat
*
* these fields of FeatureBase are initialized each time a feature is added to the track matrix:
*
* add(Cap, track_id, f) will set f.capture_ptr = C and f.traci_id = traci_id.
* add(Cap, track_id, f) will set f.capture_ptr = C and f.track_id = track_id.
*
* so e.g. given a feature f,
*
* getTrack (f->trackId()) ; // returns all the track where feature f is.
* getSnapshot(f->getCapture()) ; // returns all the features in the same capture of f.
* getSnapshot(f->getCapture()) ; // returns all the features in the same capture of f.
*
*/
@@ -83,8 +83,8 @@ class TrackMatrix
void remove (FeatureBasePtr _ftr);
void remove (size_t _track_id);
void remove (CaptureBasePtr _cap);
SizeStd numTracks ();
SizeStd trackSize (size_t _track_id);
SizeStd numTracks ();
SizeStd trackSize (size_t _track_id);
Track track (size_t _track_id);
Snapshot snapshot (CaptureBasePtr _capture);
vector<FeatureBasePtr>
@@ -105,7 +105,8 @@ class TrackMatrix
map<size_t, Track > tracks_; // map indexed by track_Id of ( maps indexed by TimeStamp of ( features ) )
// Across track: maps of Feature pointers indexed by track_Id.
map<size_t, Snapshot > snapshots_; // map indexed by capture_Id of ( maps indexed by track_Id of ( features ) )
// map<size_t, Snapshot > snapshots_; // map indexed by capture_Id of ( maps indexed by track_Id of ( features ) )
map<CaptureBasePtr, Snapshot > snapshots_; // map indexed by capture_ptr of ( maps indexed by track_Id of ( features ) )
};
} /* namespace wolf */
Loading