Commit e08c9099 authored by alexander.dornheim's avatar alexander.dornheim
Browse files

Adjusted break criteria in RAAR to change, now Siemens_amplitude_in seems to work

Cleaned up some output statements
parent 85e2a4a3
......@@ -92,7 +92,7 @@ class RAAR(Algorithm):
##### LOOP
while iter < maxiter and shadow_change[iter] >= tol:
while iter < maxiter and change[iter] >= tol:
tmp = exp((-(iter+1)/self.beta_switch)**3);
beta = (tmp*self.beta_0) + ((1-tmp)*self.beta_max)
......@@ -150,7 +150,6 @@ class RAAR(Algorithm):
# Since the stopping criteria is on the change in the iterates, this
# does not matter.
# graphics
print(shadow_change[iter])
u = tmp_u
tmp1 = (2*tmp2) - tmp_u
......
......@@ -73,9 +73,7 @@ def Siemens_processor(config):
# input.amplitude = input.amplitude/norm(input.amplitude,'fro')*input.norm_rt_data(1)
G=np.zeros(S.shape)# Gaussian(points,10,[points/2+1,points/2+1])
W=np.matmul(S,np.exp(1j*2*np.pi*G))
print(W[86,135])
M=abs(fft2(W))
print(M)
# config['data_ball']=config['Nx']*config['Ny']*data_ball
config['rt_data']=M
# standard for the main program is that
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment