Script execution
This commit is contained in:
@@ -33,6 +33,14 @@ class ImageCorrectedIntensity(DeviceBase, Readable):
|
||||
self.setCache(ret, None)
|
||||
return ret
|
||||
|
||||
class ImageMatrix(DeviceBase, ReadableMatrix, Readable.LongType):
|
||||
def __init__(self, image):
|
||||
DeviceBase.__init__(self, image.name + " matrix")
|
||||
self.setParent(image)
|
||||
|
||||
def read(self):
|
||||
return self.getParent().get_image()
|
||||
|
||||
|
||||
class Image(DeviceBase, Readable):
|
||||
def __init__(self, name, pixel):
|
||||
@@ -41,6 +49,7 @@ class Image(DeviceBase, Readable):
|
||||
self.roi = [0,0, self.pixel.PIX_XDIM-1, self.pixel.PIX_XDIM]
|
||||
self.broi = [0,0, self.pixel.PIX_XDIM-1, self.pixel.PIX_YDIM]
|
||||
self.intensity = ImageIntensity(self)
|
||||
self.matrix = ImageMatrix(self)
|
||||
self.corrected_intensity = ImageCorrectedIntensity(self)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user