This commit is contained in:
15
script/test/PlotImage.py
Executable file
15
script/test/PlotImage.py
Executable file
@@ -0,0 +1,15 @@
|
||||
|
||||
sensor = scienta.getSensorSize()
|
||||
roi = scienta.getROI()
|
||||
data = scienta.getDataMatrix().take()
|
||||
|
||||
a=Convert.toDouble(data);
|
||||
scaleX = roi[2] / len(a[0])
|
||||
scaleY = roi[3] / len(a)
|
||||
arr = [[0.0] * sensor[1]] *sensor[0]
|
||||
for i in range(len(a)):
|
||||
for j in range (len(a[0])):
|
||||
arr[int(scaleY * i) + roi[1]][int(scaleX * j) + roi[0]] = a[i][j]
|
||||
|
||||
|
||||
p=plot(arr)
|
||||
Reference in New Issue
Block a user