X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=SimuPBI_3WiresPhant_func.m;h=98b11ed2c7b9551eff3039fa012a026ad1392563;hb=f71159f19dfee5fa7a4ce6aa09f41ce2fb5e125b;hp=094fce7e467021e02eb5f5cd1e670599c25bb34b;hpb=befe9122df25c0bead5080752c4cd20389875315;p=CreaPhase.git diff --git a/SimuPBI_3WiresPhant_func.m b/SimuPBI_3WiresPhant_func.m index 094fce7..98b11ed 100644 --- a/SimuPBI_3WiresPhant_func.m +++ b/SimuPBI_3WiresPhant_func.m @@ -67,8 +67,15 @@ addpath(genpath('octave_packages')) %range_angle=180; ## Which model do you want to use for the propagation? use 1 or 0 -%model_ctf=0; -%model_Fresnel=1; +## model_ctf refers to the Contrast Transfer Function propagation model. use 1 if you want to simulate propagation with the CTF model, or 0 otherwise. +## should be equal to 0 or 1 +% model_ctf = 1 +% model_ctf = 0 + +## model_Fresnel refers to the Fresnel propagation model. Use 1 if you want to simulate propagation with the fresnel model, or 0 otherwise. +## should be equal to 0 or 1 +% model_Fresnel = 1 +% model_Fresnel = 0 ################################ ############# Parameters related to the object @@ -159,13 +166,13 @@ betash = lambda*D; % in meter^2 pad_method='extend'; % Absorption image ('mu', in cm-1) -mu=edfread('attenuation.edf'); % map of mu in cm-1 +mu=edfread('images/attenuation.edf'); % map of mu in cm-1 [m n]=size(mu) absorption=mu*100; % in m-1 , to be consistant with lambda!! /10 to have less attenuation beta=(lambda/(4*pi))*absorption; % one slice of beta /!\ units -delta_beta=edfread('delta_beta_map_1200.edf'); +delta_beta=edfread('images/delta_beta_map_1200.edf'); delta=delta_beta.*beta; ## Noise addition