def __init__(self, list=None): self.handle = None self.handle = pygadgetron.cGT_newObject('ImagesReconstructor') check_status(self.handle) self.input_data = None if list is None: return for i in range(len(list)): label, name = label_and_name(list[i]) self.add_gadget(label, Gadget(name))
def __init__(self, acqs=None, imgs=None): self.handle = None if acqs == None: self.handle = pygadgetron.cGT_newObject('AcquisitionModel') else: assert_validity(acqs, AcquisitionData) assert_validity(imgs, ImageData) self.handle = \ pygadgetron.cGT_AcquisitionModel(acqs.handle, imgs.handle) check_status(self.handle)
def __init__(self, name): ''' Creates a gadget of specified type and properties. name: a string of the form gadget_type(property1=value1, ...) ''' self.handle = None name, prop = name_and_parameters(name) self.handle = pygadgetron.cGT_newObject(name) check_status(self.handle) if prop is not None: self.set_properties(prop)
def __init__(self, list=None): ''' Creates an acquisition processor specified by a list of gadgets. list: Python list of gadget description strings, each gadget description being a string of the form '[label:]gadget_name[(property1=value1[,...])]' (square brackets embrace optional items, ... stands for etc.) ''' self.handle = None self.handle = pygadgetron.cGT_newObject('AcquisitionsProcessor') check_status(self.handle) self.input_data = None self.output_data = None if list is None: return for i in range(len(list)): label, name = label_and_name(list[i]) self.add_gadget(label, Gadget(name))
def __init__(self): self.handle = None self.handle = pygadgetron.cGT_newObject('CoilImages') check_status(self.handle)
def __init__(self): self.handle = None self.handle = pygadgetron.cGT_newObject( 'SimpleReconstructionProcessor') check_status(self.handle) self.input_data = None
def __init__(self): self.handle = pygadgetron.cGT_newObject('GadgetChain') check_status(self.handle)