예제 #1
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
 def value(self, image):
     handle = pystir.cSTIR_objectiveFunctionValue(self.handle, image.handle)
     _check_status(handle)
     return pyiutil.floatDataFromHandle(handle)
예제 #2
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
def _float_par(handle, set, par):
    h = pystir.cSTIR_parameter(handle, set, par)
    _check_status(h)
    value = pyiutil.floatDataFromHandle(h)
    pyiutil.deleteDataHandle(h)
    return value