Esempio n. 1
0
 def get_output(self):
     """Gets the registered image."""
     output = NiftiImageData3D()
     output.handle = pysirfreg.cSIRFReg_parameter(self.handle, 'SIRFReg',
                                                  'output')
     check_status(output.handle)
     return output
Esempio n. 2
0
def _float_pars_sirf(handle, set_, par, n):
    h = pysirfreg.cSIRFReg_parameter(handle, set_, par)
    check_status(h)
    value = ()
    for i in range(n):
        value += (pyiutil.floatDataItemFromHandle(h, i), )
    pyiutil.deleteDataHandle(h)
    return value
Esempio n. 3
0
def _float_par_sirf(handle, set_, par):
    h = pysirfreg.cSIRFReg_parameter(handle, set_, par)
    check_status(h, inspect.stack()[1])
    value = pyiutil.floatDataFromHandle(h)
    pyiutil.deleteDataHandle(h)
    return value
Esempio n. 4
0
def _getParameterHandle_sirf(hs, set_, par):
    handle = pysirfreg.cSIRFReg_parameter(hs, set_, par)
    check_status(handle, inspect.stack()[1])
    return handle