Propagation-based phase contrast images generation <b><font color=blue>results-directory</font></b> (<b><font color=green>Directory</font></b>): Directory where the results will be stored. <b><font color=blue>vers</font></b> (<b><font color=green>String</font></b>): are the projections calculated analytically or using the Radon transform? use the strings 'Radon' OR 'Analytical' <b><font color=blue>oversamp</font></b> (<b><font color=green>Number</font></b>): Oversampling of the projections : use 2 or 4 <b><font color=blue>basename</font></b> (<b><font color=green>String</font></b>): Basename of the result files <b><font color=blue>dist</font></b> (<b><font color=green>String</font></b>): Distances of propagation (in m), e.g. 0 0.01 0.1 0.20 0.50 <b><font color=blue>energy</font></b> (<b><font color=green>Number</font></b>): Energy of the incoming X-ray beam (in keV) <b><font color=blue>pixelSize</font></b> (<b><font color=green>Number</font></b>): Pixel size of the detector (in um) <b><font color=blue>nbProj</font></b> (<b><font color=green>Number</font></b>): Number of projections (e.g., 360) <b><font color=blue>rangeAngle</font></b> (<b><font color=green>Number</font></b>): Range of the tomography : 180 or 360 degrees <b><font color=blue>modelCtf</font></b> (<b><font color=green>Number</font></b>): Which model do you want to use for the propagation? use 1 or 0 <b><font color=blue>modelFresnel</font></b> (<b><font color=green>Number</font></b>): Which model do you want to use for the propagation? use 1 or 0 <b><font color=blue>imageSize</font></b> (<b><font color=green>String</font></b>): height of the object. If height == 1, the simulation is computed in 1D. If height >=2 , the simulation turns into 2D. <b><font color=blue>noiseType</font></b> (<b><font color=green>String</font></b>): Use noise='gaussian' (addition of gaussian noise) or noise='poisson' (generation of Poisson noise). <b><font color=blue>noiseAmount</font></b> (<b><font color=green>String</font></b>): If 'gaussian' (additive noise), please specify the Peak-to-peak Signe-to-noise ratio (PPSNR, in dB). If 'poisson', please specify a scaling factor ranging in [0:1]. /*----------Beginning of Beanshell------------*/ import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy_HH:mm:ss"); String result = dir.toString()+"/"+(dateFormat.format(System.currentTimeMillis())); /*------------End of Beanshell------------*/ /*----------Beginning of Beanshell------------*/ //String toAppend="\\\""; out="["+inputString+"]"; /*----------Beginning of Beanshell------------*/ String toAppend="'"; out=toAppend+inputString+toAppend; /*----------Beginning of Beanshell------------*/ String toAppend="'"; out=toAppend+inputString+toAppend; /*----------Beginning of Beanshell------------*/ String toAppend="'"; out=toAppend+inputString+toAppend; /*----------Beginning of Beanshell------------*/ String toAppend="'"; out=toAppend+inputString+toAppend;