示例#1
0
 def data_type(self, im_num):
     '''
     Returns the data type for a specified image (see 8 data types above).
     im_num: image (slice) 
     '''
     assert self.handle is not None
     handle = pygadgetron.cGT_imageDataType(self.handle, im_num)
     check_status(handle)
     n = pyiutil.intDataFromHandle(handle)
     pyiutil.deleteDataHandle(handle)
     return n
示例#2
0
def int_par(handle, group, par):
    h = parameter(handle, group, par)
    check_status(h, inspect.stack()[1])
    value = pyiutil.intDataFromHandle(h)
    pyiutil.deleteDataHandle(h)
    return value
示例#3
0
def _int_par(handle, set, par):
    h = pygadgetron.cGT_parameter(handle, set, par)
    check_status(h)
    value = pyiutil.intDataFromHandle(h)
    pyiutil.deleteDataHandle(h)
    return value