Beispiel #1
0
 def value(self, image):
     handle = pystir.cSTIR_objectiveFunctionValue(self.handle, image.handle)
     _check_status(handle)
     return pyiutil.floatDataFromHandle(handle)
Beispiel #2
0
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