Skip to content

Commit

Permalink
A bit of a color tweek
Browse files Browse the repository at this point in the history
  • Loading branch information
“Akbonline” committed Nov 1, 2020
1 parent 7045a87 commit 977bd75
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
Binary file modified __pycache__/Camera.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/descriptor.cpython-38.pyc
Binary file not shown.
Binary file modified __pycache__/display.cpython-38.pyc
Binary file not shown.
25 changes: 19 additions & 6 deletions descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,18 +82,31 @@ def viewer_refresh(self, q):
self.state = q.get()

gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT)
gl.glClearColor(1.0, 1.0, 1.0, 1.0)
gl.glClearColor(0, 0, 0, 0)
self.dcam.Activate(self.scam)

# draw poses
gl.glColor3f(0.0, 1.0, 0.0)
pangolin.DrawCameras(self.state[0])

# Draw Point Cloud
#points = np.random.random((10000, 3))
#colors = np.zeros((len(points), 3))
#colors[:, 1] = 1 -points[:, 0]
#colors[:, 2] = 1 - points[:, 1]
#colors[:, 0] = 1 - points[:, 2]
#points = points * 3 + 1
#gl.glPointSize(10)
#pangolin.DrawPoints(self.state[1], colors)

# draw keypoints
gl.glPointSize(2)
gl.glColor3f(1.0, 0.0, 0.0)
gl.glColor3f(0.184314, 0.309804, 0.184314)
pangolin.DrawPoints(self.state[1]+1)
gl.glPointSize(1)
gl.glColor3f(0.3099, 0.3099,0.184314)
pangolin.DrawPoints(self.state[1])

# draw poses
gl.glColor3f(0.0, 1.0, 1.0)
pangolin.DrawCameras(self.state[0])

pangolin.FinishFrame()

def display(self):
Expand Down

0 comments on commit 977bd75

Please sign in to comment.