def __init__(self, cl, name): self.__roiCounterMgr = None self.__roiName2ID = {} self.__roiID2Name = {} self.__currentRoiId = 0 BasePostProcess.__init__(self, cl, name) RoiCounterDeviceServer.init_device(self) try: ctControl = _control_ref() config = ctControl.config() class _RoiConfigSave(Core.CtConfig.ModuleTypeCallback): def __init__(self, cnt): Core.CtConfig.ModuleTypeCallback.__init__( self, b"RoiCounters") self.__cnt = weakref.ref(cnt) def store(self): cnt = self.__cnt() return cnt.get_current_config() def restore(self, c): cnt = self.__cnt() cnt.apply_config(c) self.__roiConfigsave = _RoiConfigSave(self) config.registerModule(self.__roiConfigsave) except AttributeError: pass
def __init__(self, cl, name): self.__peakFinderMgr = None self.__ComputingMode = {'MAXIMUM': 0, 'CM': 1} BasePostProcess.__init__(self, cl, name) PeakFinderDeviceServer.init_device(self)
def __init__(self, cl, name): self.__roi2spectrumMgr = None self.__roiName2ID = {} self.__roiID2Name = {} self.__currentRoiId = 0 BasePostProcess.__init__(self, cl, name) Roi2spectrumDeviceServer.init_device(self)
def __init__(self, cl, name): self.__flatFieldTask = None self.__normalize = True self.__flatFieldImage = Core.Processlib.Data() BasePostProcess.__init__(self, cl, name) FlatfieldDeviceServer.init_device(self)
def __init__(self, cl, name): self.__maskTask = None self.__maskImage = Core.Processlib.Data() self.__Type = {'STANDARD': 0, 'DUMMY': 1} BasePostProcess.__init__(self, cl, name) MaskDeviceServer.init_device(self)
def __init__(self, cl, name): self.__backGroundTask = None self.__backGroundImage = Core.Processlib.Data() self.get_device_properties(self.get_device_class()) self.__deleteDarkAfterRead = False self.__offset = 0 BasePostProcess.__init__(self, cl, name) BackgroundSubstractionDeviceServer.init_device(self)
def __init__(self, cl, name): self._softOp = None self._bpmManager = None self.bvdata = None self._BVDataTask = None self.bkg_substraction_handler = None self.palette = self.init_palette() # initialize min max for image scaling #self.min_max = [0, 2**(self.ImageType2Bpp[_control_ref().image().getImageType()])] BasePostProcess.__init__(self, cl, name) self.init_device()
def __getattr__(self,name) : try: return BasePostProcess.__getattr__(self,name) except AttributeError: # ask the help to not store object ref (object attribute functions) # into __dict__, mask task is recreated everytime the plugin is stopped/started return AttrHelper.get_attr_4u(self,name,self.__maskTask, update_dict=False)
def __init__(self, cl, name): self._softOp = None self._bpmManager = None self.bvdata = None self.autoscale = False self.color_map = False self.lut_method = "LINEAR" self._BVDataTask = None self.bkg_substraction_handler = None #######PALETTE INIT self.palette = self.init_palette() ####### BasePostProcess.__init__(self, cl, name) self.init_device()