예제 #1
0
 def __init__(self, obj_fun = None):
     self.handle = None
     self.name = 'PoissonLogLikelihoodWithLinearModelForMeanAndProjData'
     if obj_fun is None:
         self.handle = pystir.cSTIR_newObject(self.name)
     else:
         self.handle = pystir.cSTIR_copyOfObject(obj_fun.handle)
     _check_status(self.handle)
예제 #2
0
 def __init__(self):
     self.handle = None
     self.name = 'ProjectorsUsingMatrix'
     self.templ = None
     self.templ_name = None
     self.image = None
     self.handle = pystir.cSTIR_newObject(self.name)
     _check_status(self.handle)
예제 #3
0
 def __init__(self, data_processor = None):
     self.handle = None
     self.name = 'TruncateToCylindricalFOVImageProcessor'
     if data_processor is None:
         self.handle = pystir.cSTIR_newObject(self.name)
     else:
         self.handle = pystir.cSTIR_copyOfObject(data_processor.handle)
     _check_status(self.handle)
예제 #4
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
    def __init__(self, data_processor = None):
        self.handle = None
        self.name = 'TruncateToCylindricalFOVImageProcessor'
        if data_processor is None:
            self.handle = pystir.cSTIR_newObject(self.name)
        else:
            self.handle = pystir.copyOfObjectHandle(data_processor.handle)
##            self.handle = pystir.cSTIR_copyOfObject(data_processor.handle)
        _check_status(self.handle)
예제 #5
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
    def __init__(self, obj_fun = None):
        self.handle = None
        self.name = 'PoissonLogLikelihoodWithLinearModelForMeanAndProjData'
        if obj_fun is None:
            self.handle = pystir.cSTIR_newObject(self.name)
        else:
            self.handle = pyiutil.copyOfObjectHandle(obj_fun.handle)
##            self.handle = pystir.cSTIR_copyOfObject(obj_fun.handle)
        _check_status(self.handle)
예제 #6
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
 def __init__(self, matrix = None):
     ''' Creates an AcquisitionModelUsingMatrix object, optionally setting
         the ray tracing matrix to be used for projecting;
         matrix:  a RayTracingMatrix object to represent G in (F).
     '''
     self.handle = None
     self.name = 'AcqModUsingMatrix'
     self.handle = pystir.cSTIR_newObject(self.name)
     _check_status(self.handle)
     if matrix is not None:
         _setParameter(self.handle, self.name, 'matrix', matrix.handle)
예제 #7
0
 def __init__(self, arg = None):
     self.handle = None
     self.voxels = None
     if isinstance(arg, str):
         self.handle = pystir.cSTIR_objectFromFile('Image', arg)
         _check_status(self.handle)
     elif arg is None:
         self.handle = pystir.cSTIR_newObject('Image')
     else:
         raise error\
               ('wrong argument ' + repr(arg) + ' for Image constructor')
     self.name = 'Image'
     self.rimsize = -1
예제 #8
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
 def __init__(self, arg = None):
     self.handle = None
     if isinstance(arg, str):
         self.handle = pystir.cSTIR_objectFromFile('Image', arg)
         _check_status(self.handle)
     elif isinstance(arg, AcquisitionData):
         self.handle = pystir.cSTIR_imageFromAcquisitionData(arg.handle)
         _check_status(self.handle)
     elif arg is None:
         self.handle = pystir.cSTIR_newObject('Image')
     else:
         raise error\
               ('wrong argument ' + repr(arg) + ' for Image constructor')
     self.name = 'Image'
     self.rimsize = -1
예제 #9
0
 def __init__(self):
     self.handle = None
     self.name = 'QuadraticPrior'
     self.handle = pystir.cSTIR_newObject(self.name)
     _check_status(self.handle)
예제 #10
0
 def __init__(self):
     self.handle = None
     self.name = 'RayTracingMatrix'
     self.handle = pystir.cSTIR_newObject(self.name)
     _check_status(self.handle)
예제 #11
0
 def __init__(self):
     self.handle = None
     self.name = 'EllipsoidalCylinder'
     self.handle = pystir.cSTIR_newObject(self.name)
     _check_status(self.handle)
예제 #12
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
 def __init__(self):
     self.handle = None
     self.name = 'QuadraticPrior'
     self.handle = pystir.cSTIR_newObject(self.name)
     _check_status(self.handle)
예제 #13
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
 def __init__(self):
     self.handle = None
     self.name = 'RayTracingMatrix'
     self.handle = pystir.cSTIR_newObject(self.name)
     _check_status(self.handle)
예제 #14
0
파일: pStir.py 프로젝트: CCPPETMR/xSTIR
 def __init__(self):
     self.handle = None
     self.name = 'EllipsoidalCylinder'
     self.handle = pystir.cSTIR_newObject(self.name)
     _check_status(self.handle)