Skip to content

Commit

Permalink
update data for tv recon
Browse files Browse the repository at this point in the history
  • Loading branch information
koflera committed Jan 13, 2025
1 parent b03b893 commit 5302db2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions examples/tv_minimization_reconstruction_pdhg.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
import requests

# define zenodo URL of the example ismrmd data
zenodo_url = 'https://zenodo.org/records/10854057/files/'
fname = 'pulseq_radial_2D_402spokes_golden_angle_with_traj.h5'
# choose number of spokes; either 24, 96402
n_spokes = 24
zenodo_url = 'https://zenodo.org/records/14617082/files/'
fname = f'radial2D_{n_spokes}spokes_golden_angle_with_traj.h5'

# Download the data from zenodo
data_file = tempfile.NamedTemporaryFile(mode='wb', delete=False, suffix='.h5')
Expand Down Expand Up @@ -140,7 +142,7 @@
from mrpro.operators.functionals import L1NormViewAsReal, L2NormSquared, ZeroFunctional

# Regularization parameter for the $\ell_1$-norm
regularization_parameter = 0.1
regularization_parameter = 1.0

# Set up the problem by using the previously described identification
l2 = 0.5 * L2NormSquared(target=kdata.data, divide_by_n=True)
Expand Down Expand Up @@ -179,7 +181,7 @@ def callback(optimizer_status: PDHGStatus) -> None:
import matplotlib.pyplot as plt

fig, ax = plt.subplots(1, 3, squeeze=False)
clim = [0, 1e-3]
clim = [0, 6e-4]
ax[0, 0].set_title('Adjoint (direct) Recon', fontsize=10)
ax[0, 0].imshow(img_direct.data.abs()[0, 0, 0, :, :], clim=clim)
ax[0, 1].set_title('Iterative SENSE', fontsize=10)
Expand Down

0 comments on commit 5302db2

Please sign in to comment.