X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=SimuPBI_3WiresPhant_func.m;h=e1250e7d460887760000e54337617ba5acf0e82f;hb=HEAD;hp=43cbbb33a31fe604f9a78eb348f5effae16644ca;hpb=0ce176846b40b9123af4cf78e72b94811a8b143f;p=CreaPhase.git diff --git a/SimuPBI_3WiresPhant_func.m b/SimuPBI_3WiresPhant_func.m index 43cbbb3..e1250e7 100644 --- a/SimuPBI_3WiresPhant_func.m +++ b/SimuPBI_3WiresPhant_func.m @@ -28,6 +28,8 @@ function [] = SimuPBI_3WiresPhant_func (vers, oversamp, basename_output, dist, e addpath('utilities_ESRF') addpath('utilities_LW') +addpath('octave_packages/image-1.0.15') +addpath('octave_packages/signal-1.1.3') ################################################ ############### INPUT parameters ############### @@ -66,8 +68,15 @@ addpath('utilities_LW') %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 @@ -158,13 +167,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