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