-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsample_use.py
52 lines (39 loc) · 1.28 KB
/
sample_use.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/python2
from SimpleCV import *
from ds325 import DS325
depthsense = DS325()
while True:
# THESE THREE ARE SIMPLECV IMAGE
iD = depthsense.getDepth()
#iD.show()
iS = depthsense.getImage()
#iS.show()
iY = depthsense.getSync()
#iY.show()
# in beta
iH = depthsense.getDepthColoured()
#iH.show()
iG = depthsense.getGreyScale()
#iG.show()
iE = depthsense.getConvolvedDepth("sobx", 1, 0.0)
#iE.show()
iC = depthsense.getConvolvedImage("scry", 1, 0.0)
iCC = depthsense.getConvolvedImage("scrx", 1, 0.0)
#iC.show()
# THESE THREE ARE NOT SIMPLECV IMAGES BY DEFAULT
vertex = depthsense.getVertex()
# vertex map does not get returned as an image as it makes no sense
iV = Image(vertex.transpose([1,0,2]))
#iV.show()
vertexFP = depthsense.getVertexFP()
# vertex map does not get returned as an image as it makes no sense
iP = Image(vertexFP.transpose([1,0,2]))
# accel is not returned as a simplecv image
iA = depthsense.getAcceleration()
# uv map is not returned as a simplecv image
iU = depthsense.getUV()
#depthsense.saveMap("vertex", "vertex.asc");
#iS.sideBySide(iV).show()
#iC.sideBySide(iG).show()
#iD.sideBySide(iY).show()
#iH.sideBySide(iE).show()