fr1ll commited on
Commit
5381a8a
·
verified ·
1 Parent(s): 66bfa43

Set npx to nt - not sure why

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -11,13 +11,14 @@ def compute_radon_fn(image,
11
  else:
12
  image_gray = image
13
 
14
- M, N = image_gray.shape
15
  # Define axes centered around zero.
16
- taxis = np.linspace(-M/2, M/2, M) # time axis (rows)
17
- haxis = np.linspace(-N/2, N/2, N) # spatial axis (columns)
18
  # Set detector axis (pxaxis) to cover the full image diagonal.
19
- L = int(np.ceil(np.sqrt(M**2 + N**2)))
20
- pxaxis = np.linspace(-L/2, L/2, L)
 
21
 
22
  print(f"Shapes:\n taxis:{taxis.shape}, haxis:{haxis.shape}, pxaxis:{pxaxis.shape}")
23
 
 
11
  else:
12
  image_gray = image
13
 
14
+ nt, nh = image_gray.shape
15
  # Define axes centered around zero.
16
+ taxis = np.linspace(-nt/2, nt/2, nt) # time axis (rows)
17
+ haxis = np.linspace(-nh/2, nh/2, nh) # spatial axis (columns)
18
  # Set detector axis (pxaxis) to cover the full image diagonal.
19
+ # L = int(np.ceil(np.sqrt(M**2 + N**2)))
20
+ npx = nt # why?
21
+ pxaxis = np.linspace(-npx/2, npx/2, npx)
22
 
23
  print(f"Shapes:\n taxis:{taxis.shape}, haxis:{haxis.shape}, pxaxis:{pxaxis.shape}")
24