Program, FIENUP, version 9
This program reconstrcuts an image from a two dimensional diffraction pattern using iterative phase retrieval methods. The program as compiled runs under both the DOS and Linux command windows. The program is written in the language of C. The following options are built into the program:
for phase retrieval (default HIO)
-hio (HIO algorithm)
-e (error reduction algorithm)
-f (apply charge flipping)
-p (apply positivity constraint)
-le (Marks error reduction algorithm)
-dm (use difference map method)
-x (use complex object)
-beta beta (mixing coefficient in HIO or DM, default 0.7)
-gamma gamma1 gamma2 (mixing coefficient in DM, 1 and 2 for real/reciprocal
space, default -/+1/0.7)
-epi epi_start epi_end (threshold for background noise, start and end values)
-epsilon epsilon (threshold for zero, default 1e-7, used in -le option)
for starting phase
-i type init_image (start with image in the sepcified image file, type 2 for
real 3 for complex)
-seed seed (specify seed for random phase generation)
-addnoise amplitude (add noise to starting image)
for constraints
-modify target_image iter (match image amplitude with target image for every
iter)
-mctl iter bin tfactor sigma (image modify control parameters, tfactor for threshold,
background noise, default 4 8 0 0)
-mean (keep the mean value of ck1)
-sym isym (impose local symmetry, not used)
-diffmask diffract_mask (use diffraction mask in specified image file)
-diffrad radius (specify diffraction mask using the cutoff radius in pixels)
-dscale (scale the Fourier amplitude of iterate to minimize the difference with
experiment)
-f0scale (scale central peak, F(00))
-am mode (amplitude replacement mode, 1 (force to zero) or 2 (force exp limit),
0 (free) default 0)
for dynamical mask
-dymask use dynamic mask
-oshift shift image center use together with -Dymask
-coe threshold_control_parameter dilation_radius mask_percentage_threshold (default
1.0 2 10)
for debug information
-verb mode (0 default, 1 show images, 2 for more)