Skip to content

Commit

Permalink
completed math for stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Samleo8 committed May 5, 2022
1 parent 589fb7c commit f4a281d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def plot(self, fig: plt.figure, show: bool = False):
points_global = np.empty((0, 2))
for kf in self.keyframes:
points_global = np.vstack((points_global,kf.getPrunedFeaturesGlobalPosition()))
plt.scatter(points_global[:, 0], points_global[:, 1], marker='+', color='g',alpha=.8,label='Map Points')

subsampleFactor = 4
plt.scatter(points_global[::subsampleFactor, 0], points_global[::subsampleFactor, 1], marker='+', color='g',alpha=.8,label='Map Points')

if show:
plt.show()
Expand Down
2 changes: 1 addition & 1 deletion g2o
Submodule g2o updated 574 files

0 comments on commit f4a281d

Please sign in to comment.