You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# In order to use an advanced reconstruction we will pass some parameters that will be used by the reconstruction package MRIReco.jl
31
-
using SEQ_BRUKER_a_MP2RAGE_CS_360.MRIReco
32
-
using SEQ_BRUKER_a_MP2RAGE_CS_360.MRIReco.RegularizedLeastSquares
29
+
33
30
34
31
# We have to create a parameter dictionnary that will be used. If you need more information about it take a look at [MRIReco.jl](https://github.com/MagneticResonanceImaging/MRIReco.jl)
35
32
@@ -41,7 +38,7 @@ CS[:iterations] = 30
41
38
42
39
d =reconstruction_MP2RAGE(path_bruker; mean_NR=true,paramsCS = CS)
43
40
44
-
# for comparison purpose let's perform the undersampled reconstruction (without the paramCS keyword)
41
+
# for comparison purposes let's perform the undersampled reconstruction (without the paramCS keyword)
Copy file name to clipboardexpand all lines: docs/lit/examples/simple_reco.jl
+15-13
Original file line number
Diff line number
Diff line change
@@ -13,31 +13,31 @@ using SEQ_BRUKER_a_MP2RAGE_CS_360
13
13
using CairoMakie # plotting
14
14
15
15
# ## Download the datasets
16
-
16
+
# if you run the literate example offline change the following line by : `MP2_artifacts = artifact"MP2RAGE_data"
17
17
datadir = Main.MP2_artifacts
18
18
@info"The test data is located at $datadir."
19
19
20
20
# If you want to perform your own reconstruction, you can change the following line in order to point to another a bruker dataset
21
21
path_bruker =joinpath(datadir, "MP2RAGE_FULLY")
22
22
23
23
# ## Perform the reconstruction
24
-
# this function will perform a standard reconstruction without compressed-sensing. If your data are subsampled, results will be undersampled reconstruction.
24
+
# this function will perform a standard reconstruction without compressed-sensing. If your data are subsampled it will result in subsampling artifacts (blurring + noise-like)
25
25
#
26
-
# the keyword mean_NR=true will average the image before performing the MP2RAGE/T1 maps estimation.
26
+
# the keyword mean_NR=true will average the images accross the number of repetition dimension before performing the MP2RAGE/T1 maps estimation.
27
27
# Otherwise an image/T₁ map will be generated for each Number Of Repetition (NR)
28
28
d =reconstruction_MP2RAGE(path_bruker; mean_NR=true)
29
29
30
30
31
31
# the result is a dictionnary with the following fields :
32
-
# - "im_reco" : (x,y,z,Number of Repetition,TI) Complex
33
-
# - "MP2RAGE" : (x,y,z,TI) Float
34
-
# - "T1map" : (x,y,z,Number of Repetition) Float
32
+
# - "im_reco" : (x,y,z,Number of Channel , Number of Repetition,TI) Complex
33
+
# - "MP2RAGE" : (x,y,z,Number of Channel , Number of Repetition) Float
34
+
# - "T1map" : (x,y,z,Number of Channel , Number of Repetition) Float
35
35
# - "params_prot"
36
36
# - "params_reco"
37
37
# - "params_MP2RAGE"
38
38
#
39
-
# im_reco corresponds to the TI₁ and \TI₂ images in the complex format with 6 dimensions :
40
-
# (x,y,z,Number of Repetition,TI)
39
+
# im_reco corresponds to the TI₁ and TI₂ images in the complex format with 6 dimensions :
40
+
# (x,y,z, Number of Channel , Number of Repetition,TI)
for ax in f.content # hide decoration befor adding colorbar
@@ -64,8 +64,8 @@ begin
64
64
f
65
65
end
66
66
67
-
# The Lookup table used for the reconstruction is stored in the dictionnary (LUT)
68
-
# First columns is the range of T1.
67
+
# The Lookup table used for the reconstruction is stored in the dictionnary (LUT).
68
+
# First dimension is the range of T1 and the 2nd is the expected value of the MP2RAGE signal between -0.5 to 0.5.
69
69
f=Figure()
70
70
ax =Axis(f[1,1],xlabel="T₁ [ms]")
71
71
lines!(ax,d["LUT"])
@@ -94,7 +94,9 @@ sub_01/
94
94
└─ sub_01_inv-2-phase_MP2RAGE.nii.gz
95
95
```
96
96
97
-
If you want to generate the T1 map with another tools like qMRLab
98
-
the required MP2RAGE parameters are stored in the **MP2RAGE.json** file.
97
+
For simplicity the T₁ map is stored in the anat/ folder like the ones created by Siemens.
98
+
99
+
If you want to generate the T1 map with another tool like qMRLab
100
+
the required MP2RAGE parameters are stored in the **MP2RAGE.json** file. In that case the data are supposed to be stored in a derivatives folder (see[qBIDS format recommandation](https://bids-specification.readthedocs.io/en/stable/appendices/qmri.html))
0 commit comments