31 lines
683 B
Python
31 lines
683 B
Python
# d=axis.data
|
|
# d.toGrayscale()
|
|
# m=axis.data.toGrayscale().matrix
|
|
# plot(axis.data.toGrayscale().matrix)
|
|
# axis.data.width
|
|
# d.getRoi(Rectangle(100,100,300,200))
|
|
# plot(d.getRoi(Rectangle(100,100,300,200)).matrix)
|
|
|
|
|
|
# Full gray scale image
|
|
|
|
class AxisData(ReadableMatrix):
|
|
def read(self):
|
|
return axis.data.toGrayscale().matrix
|
|
|
|
def getWidth(self):
|
|
return axis.data.width
|
|
|
|
def getHeight(self):
|
|
return axis.data.height
|
|
|
|
|
|
#axis_data = AxisData()
|
|
#tscan(axis_data, 10, 1.0, save=False)
|
|
|
|
# Evaluate intensity of ROI
|
|
|
|
|
|
class AxisROIIntensity(Readable):
|
|
def read(self):
|
|
return axis.data.getRoi(Rectangle(100,100,300,200)).integrate() |