Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MRdep committed Sep 17, 2015
1 parent 9c7dcdc commit 045d833
Show file tree
Hide file tree
Showing 229 changed files with 9,826 additions and 0 deletions.
Binary file added Joint Fitting/Dynamics/dyn_0.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_0.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_1.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_1.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_10.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_10.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_11.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_11.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_12.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_12.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_13.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_13.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_14.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_14.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_15.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_15.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_16.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_16.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_17.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_17.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_18.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_18.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_19.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_19.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_2.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_2.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_20.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_20.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_21.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_21.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_22.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_22.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_23.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_23.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_24.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_24.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_25.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_25.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_26.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_26.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_27.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_27.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_28.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_28.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_29.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_29.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_3.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_3.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_30.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_30.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_31.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_31.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_32.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_32.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_33.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_33.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_34.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_34.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_35.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_35.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_36.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_36.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_37.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_37.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_38.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_38.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_39.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_39.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_4.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_4.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_40.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_40.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_41.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_41.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_42.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_42.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_43.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_43.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_44.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_44.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_45.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_45.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_46.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_46.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_47.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_47.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_48.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_48.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_49.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_49.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_5.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_5.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_50.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_50.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_51.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_51.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_52.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_52.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_53.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_53.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_54.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_54.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_55.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_55.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_56.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_56.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_57.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_57.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_58.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_58.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_59.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_59.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_6.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_6.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_60.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_60.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_61.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_61.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_62.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_62.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_63.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_63.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_64.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_64.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_65.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_65.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_66.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_66.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_67.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_67.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_68.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_68.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_69.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_69.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_7.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_7.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_70.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_70.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_71.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_71.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_72.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_72.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_73.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_73.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_74.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_74.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_75.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_75.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_76.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_76.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_77.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_77.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_78.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_78.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_79.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_79.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_8.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_8.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_80.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_80.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_81.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_81.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_82.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_82.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_83.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_83.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_84.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_84.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_85.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_85.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_86.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_86.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_87.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_87.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_88.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_88.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_89.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_89.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_9.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_9.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_90.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_90.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_91.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_91.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_92.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_92.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_93.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_93.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_94.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_94.img
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_95.hdr
Binary file not shown.
Binary file added Joint Fitting/Dynamics/dyn_95.img
Binary file not shown.
Binary file added Joint Fitting/ROImask.hdr
Binary file not shown.
Binary file added Joint Fitting/ROImask.img
Binary file not shown.
Binary file added Joint Fitting/VFA/fa_10.hdr
Binary file not shown.
Binary file added Joint Fitting/VFA/fa_10.img
Binary file not shown.
Binary file added Joint Fitting/VFA/fa_35.hdr
Binary file not shown.
Binary file added Joint Fitting/VFA/fa_35.img
Binary file not shown.
Binary file added Joint Fitting/VFA/fa_5.hdr
Binary file not shown.
Binary file added Joint Fitting/VFA/fa_5.img
Binary file not shown.
32 changes: 32 additions & 0 deletions Joint Fitting/batch_run.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pro batch_run

;This file runs the script 'run_2cxm_phantom' in batch mode. It uses multithreading to access multiple cores to increase speed.

!EXCEPT=0

mean_baseline = 163.0

COMMON S0_info, equal_and_free, unequal_and_free, equal_by_baseline
COMMON sigma_info, fixed_sigma, equal_sigma, known_sigma

;parameters relating to how M0v and M0d are varied during fitting
equal_and_free = 1
unequal_and_free = 0
equal_by_baseline = 0

;multithread indices. 6 jobs, sequential and joint estimation for 3 AIF conditions
index = [1,2,3,4,5,6]

T1_dataType = 'vfa'; could adapt to fit to IR or SR T1 mapping data
model = 'XM'; could change to Tofts or E.Tofts
n_repeats = 100; number of Monte Carlo repeats
n_vox_fit = 504; number of voxels to sample
snr_dyn = 5.0; required SNR of dynamic images
snr_vfa = 11.2; required SNR of VFA images -> snr_dyn*sqrt(5) to account for 5 signal averages

split_for,0,n_elements(index)-1,nsplit = 8,command = [$
'tag = ""',$
'a = run_2CXM_phantom(snr_dyn = snr_dyn, snr_vfa = snr_vfa, T1_dataType = T1_dataType,model = model,multithreadindex = index[i],n_repeats = n_repeats,n_vox_fit = n_vox_fit)'],$
varnames=['snr_dyn','snr_vfa','T1_datatype','model','index','n_repeats','n_vox_fit']

end
1,390 changes: 1,390 additions & 0 deletions Joint Fitting/dcemriprocessor_frees0_define.pro

Large diffs are not rendered by default.

27 changes: 27 additions & 0 deletions Joint Fitting/expconvolution.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
function ExpConvolution, l, X

n = n_elements(X)/2

T = X[0:n-1] ; T is the first half go the X array, i.e. the time points

A = X[n:*] ; A is the second half of the X array i.e. the concentration values at each time point ; units of mM


DT = T[1:n-1]-T[0:n-2] ; This is an array of dt between time points
DA = A[1:n-1]-A[0:n-2] ; this is an array of da between conc values

Z = l*DT ;Z is an array of K*dt

E = exp(-Z); E is an array of exponentials [exp-lDT0, exp-lDT1 etc
E0 = 1-E ; E0 is an array [(1-exp-lDT0), (1-exp-lDT1)
E1 = Z-E0

Il = (A[0:n-2]*E0 + DA*E1/Z)/l

Y = fltarr(n) ; Y is a double precision array with every element set to 0.0

for i=0L,n-2 do Y[i+1] = E[i]*Y[i] + Il[i]

return, Y

end
12 changes: 12 additions & 0 deletions Joint Fitting/flash_func.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pro Flash_func,FA2,p,data

COMMON fit_params, TR,rad_dyn,rad_vfa,Inv_times,r,T10_v,S0d,S0v,baseline,n_timepoints,AIF,adj_AIF
COMMON S0_info, equal_and_free, unequal_and_free, equal_by_baseline

T1 = p[1]
E0 = exp(-TR/T1)
S0 = p[0]

data = S0*((sin(FA2)*(1-E0))/(1- cos(FA2)*E0)); FLASH EQUATION

end
Loading

0 comments on commit 045d833

Please sign in to comment.