Skip to content

Commit cbe3922

Browse files
authored
add python binding
1 parent 51cfa7e commit cbe3922

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

opensfm/src/map/pymap.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ class TracksManager:
585585
def num_shots(self) -> int: ...
586586
def num_tracks(self) -> int: ...
587587
def remove_observation(self, arg0: str, arg1: str) -> None: ...
588+
def remove_track(self, arg0: str) -> None: ...
588589
def write_to_file(self, arg0: str) -> None: ...
589590

590591
Angular: "ErrorType"

opensfm/src/map/python/pybind.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ PYBIND11_MODULE(pymap, m) {
292292
&map::TracksManager::MergeTracksManager)
293293
.def("add_observation", &map::TracksManager::AddObservation)
294294
.def("remove_observation", &map::TracksManager::RemoveObservation)
295+
.def("remove_track", &map::TracksManager::RemoveTrack)
295296
.def("num_shots", &map::TracksManager::NumShots)
296297
.def("num_tracks", &map::TracksManager::NumTracks)
297298
.def("get_shot_ids", &map::TracksManager::GetShotIds)

0 commit comments

Comments
 (0)