X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=SimuPBI_circle_func.m;h=016e8ed38d337c561fbbb530842e8f2cf1ffacaf;hb=befe9122df25c0bead5080752c4cd20389875315;hp=2ddcbfb480e5547df6442f0e7c5b734761c1a004;hpb=e1e85a737673e93b6b4b01bb0b072cd35dfa3c72;p=CreaPhase.git diff --git a/SimuPBI_circle_func.m b/SimuPBI_circle_func.m index 2ddcbfb..016e8ed 100644 --- a/SimuPBI_circle_func.m +++ b/SimuPBI_circle_func.m @@ -20,15 +20,15 @@ ## Created: 2016-02-11 ## Example of use : -## SimuPBI_circle_func('Analytical', 2, 'test', [0 0.1 0.5], 19, 2.7, 300, 180, 1, 1, 0.89, 8.265*10^-7, 100, 500, [200 250], '', 'gaussian', 35) +## SimuPBI_circle_func('Analytical', 2, 'test', [0 0.1 0.5], 19, 2.7, 300, 180, 1, 1, 0.89, 8.265, 100, 500, [200 250], '', 'gaussian', 35) ## Please note that dir_out, noise_type, noise_amount are optional arguments. function [] = SimuPBI_circle_func(vers, oversamp, basename_output, dist, energy, ps, nbProj, range_angle, model_ctf, model_Fresnel, mu_mat, delta_mat, R_circle, size_image, circle_center, dir_out, noise_type, noise_amount) -addpath('/users/lweber/Matlab/SimulationsPBI/CreaPhase/utilities_ESRF') -addpath('/users/lweber/Matlab/SimulationsPBI/CreaPhase/utilities_LW') - +addpath('utilities_ESRF') +addpath('utilities_LW') +addpath(genpath('octave_packages')) ################################################ ############### INPUT parameters ############### ################################################ @@ -76,7 +76,7 @@ addpath('/users/lweber/Matlab/SimulationsPBI/CreaPhase/utilities_LW') ## material of the circle (here, PET at 19 keV) %mu_mat=0.89889 % (in cm-1); -%delta_mat=8.265*10^-7; +%delta_mat=8.265; (in 10^-7) ## size and coordinates %R_circle=50; % radius of the circle @@ -160,6 +160,7 @@ end % absorption and phase parameter mu_mat=mu_mat*100; % in m-1 , to be consistant with lambda!! +delta_mat=delta_mat*10^-7; beta_mat=lambda*mu_mat/(4*pi); %% Cartes 2D d'attenuation et d/b