Script execution
This commit is contained in:
1 parent
1d1c9ffc0a
commit
4e80639a6f
1 file changed
+15
@@ -6,5 +6,20 @@
|
||||
scienta.start()
|
||||
scienta.waitReady(-1)
|
||||
|
||||
data = scienta.data.take()
|
||||
|
||||
|
||||
#Integrate and plot
|
||||
|
||||
(width,hight) = scienta.getImageSize().tolist()
|
||||
list = []
|
||||
for i in range(width):
|
||||
p=0.0
|
||||
for j in range(height):
|
||||
p=p+data[j*width+i]
|
||||
list.append(p)
|
||||
plot(list)
|
||||
|
||||
|
||||
#data=scienta.data.take()
|
||||
#print data.tolist()
|
||||
Reference in new issue
Block a user