def reconstruct(self, input_data): handle = pygadgetron.cGT_reconstructImages\ (self.handle, input_data.handle) _check_status(handle) pygadgetron.deleteDataHandle(handle) images = ImagesContainer() images.handle = pygadgetron.cGT_reconstructedImages(self.handle) _check_status(images.handle) return images
def get_output(self, subset=None): ''' Returns specified subset of the output ImageData. If no subset is specified, returns all output. subset: the name of the subset (e.g. images, gfactors,...) ''' output = ImageData() output.handle = pygadgetron.cGT_reconstructedImages(self.handle) check_status(output.handle) if subset is None: return output else: return output.select('GADGETRON_DataRole', subset)
def reconstruct(self, input_data): ''' Returns the output from the chain for specified input. input_data: AcquisitionData ''' ## assert isinstance(input_data, AcquisitionData) assert_validity(input_data, AcquisitionData) handle = pygadgetron.cGT_reconstructImages\ (self.handle, input_data.handle) check_status(handle) pyiutil.deleteDataHandle(handle) images = ImageData() images.handle = pygadgetron.cGT_reconstructedImages(self.handle) check_status(images.handle) return images
def get_output(self): images = ImagesContainer() images.handle = pygadgetron.cGT_reconstructedImages(self.handle) _check_status(images.handle) return images