def get_output(self): """Gets the registered image.""" output = self.reference_image.same_object() output.handle = pyreg.cReg_parameter(self.handle, 'Registration', 'output') check_status(output.handle) return output
def _float_pars_sirf(handle, set_, par, n): h = pyreg.cReg_parameter(handle, set_, par) check_status(h) value = () for i in range(n): value += (pyiutil.floatDataItemFromHandle(h, i), ) pyiutil.deleteDataHandle(h) return value
def _float_par_sirf(handle, set_, par): h = pyreg.cReg_parameter(handle, set_, par) check_status(h, inspect.stack()[1]) value = pyiutil.floatDataFromHandle(h) pyiutil.deleteDataHandle(h) return value
def _getParameterHandle_sirf(hs, set_, par): handle = pyreg.cReg_parameter(hs, set_, par) check_status(handle, inspect.stack()[1]) return handle