示例#1
0
 def Tick(self, caller):
     '''Called on each frame'''
     self.imageData.append(caller.dsa.reshape(1,self.scope.cam.GetPicWidth(),self.scope.cam.GetPicHeight()))
     self.h5File.flush()
     if self.imNum == 0: #first frame
         self.md.setEntry('imageID', fileID.genFrameID(self.imageData[0,:,:]))
         
     sp.Spooler.Tick(self, caller)
示例#2
0
    def Tick(self, caller):
        # self.tq.postTask(cSMI.CDataStack_AsArray(caller.ds, 0).reshape(1,self.scope.cam.GetPicWidth(),self.scope.cam.GetPicHeight()), self.seriesName)
        self.buffer.append(caller.dsa.reshape(1, self.scope.cam.GetPicWidth(), self.scope.cam.GetPicHeight()).copy())

        if self.imNum == 0:  # first frame
            self.md.setEntry("imageID", fileID.genFrameID(self.buffer[-1].squeeze()))

        if len(self.buffer) >= self.buflen:
            self.FlushBuffer()

        sp.Spooler.Tick(self, caller)
示例#3
0
    def Tick(self, caller):
        #self.tq.postTask(cSMI.CDataStack_AsArray(caller.ds, 0).reshape(1,self.scope.cam.GetPicWidth(),self.scope.cam.GetPicHeight()), self.seriesName)
        self.buffer.append(
            caller.dsa.reshape(1, self.scope.cam.GetPicWidth(),
                               self.scope.cam.GetPicHeight()).copy())

        if self.imNum == 0:  #first frame
            self.md.setEntry('imageID',
                             fileID.genFrameID(self.buffer[-1].squeeze()))

        if len(self.buffer) >= self.buflen:
            self.FlushBuffer()

        sp.Spooler.Tick(self, caller)