Script execution

This commit is contained in:
sfop
2016-07-06 10:01:34 +02:00
parent e31d752dc5
commit 784f9384a0
+4 -4
View File
@@ -7,8 +7,8 @@ class CamToolImage(ReadableMatrix):
def __init__(self, camtool):
self.camtool = camtool
shape = camtool.cam_shape.read()
self.width = shape[1] #len(camtool.profile_x.read())
self.height = shape[0] #len(camtool.(profile_y.read())
self._width = shape[1] #len(camtool.profile_x.read())
self._height = shape[0] #len(camtool.(profile_y.read())
def read(self):
raw = self.camtool.cam_data.read()
@@ -16,10 +16,10 @@ class CamToolImage(ReadableMatrix):
#return mono_to_bidi(raw, self.getWidth(), self.getHeight())
def getWidth(self):
return self.width
return self._width
def getHeight(self):
return self.height
return self._height