def __init__(self, volume, theta_min_deg=0.0, theta_max_deg=360.0, n_positions=180, truncate_negative=False, psf=None, attenuation=None, scale=1.0): self.volume = volume self.psf = psf self.attenuation = attenuation self.use_gpu = is_gpu_enabled() self.theta_min_deg = theta_min_deg self.theta_max_deg = theta_max_deg self.n_positions = n_positions self.truncate_negative = truncate_negative self.scale=scale
def __init__(self, data=None, affine=None, space="", mask_flag=0): self.ndim = None self.space = "" if isinstance(data,str): self.load_from_file(data) else: self.set_data(data) self.set_affine(affine) self.set_space(space) self.background = global_settings.get_default_background() self.use_gpu = global_settings.is_gpu_enabled() self.set_mask_flag(mask_flag)
def __init__(self, volume, theta_min_deg=0.0, theta_max_deg=360.0, n_positions=180, truncate_negative=False, psf=None, attenuation=None): self.volume = volume self.psf = psf self.attenuation = attenuation self.use_gpu = is_gpu_enabled() self.theta_min_deg = theta_min_deg self.theta_max_deg = theta_max_deg self.n_positions = n_positions self.truncate_negative = truncate_negative