Script execution

This commit is contained in:
sfop
2016-07-06 10:25:13 +02:00
parent 62b92b7bac
commit 68c81ed63e

View File

@@ -1,6 +1,7 @@
#import ch.psi.pshell.device.DeviceBase as DeviceBase
from startup import *
import ch.psi.utils.Convert.toBidimensional as mono_to_bidi
import ch.psi.utils.Convert.toDouble as toDouble
import org.apache.commons.math3.linear.Array2DRowRealMatrix as Matrix
@@ -13,8 +14,8 @@ class CamToolImage(ReadableMatrix):
def read(self):
raw = self.camtool.data.read()
return Matrix(mono_to_bidi(raw, self.getHeight(), self.getWidth())).transpose().getData() #data is transposed
#return mono_to_bidi(raw, self.getWidth(), self.getHeight())
#return Matrix(toDouble(mono_to_bidi(raw, self.getHeight(), self.getWidth()))).transpose().getData() #data is transposed
return mono_to_bidi(raw, self.getWidth(), self.getHeight())
def getWidth(self):
return self._width