|
6 | 6 | p.addParameter('absObjectSwitch', false) % impose object being real and positiv |
7 | 7 | p.addParameter('absObjectStepSize', 0.05) % step size for absObjectSwitch |
8 | 8 | p.addParameter('batchSize', 10) % fft-block size for parallel engines |
| 9 | +p.addParameter('backgroundModeSwitch',false) % contrains mode for background |
9 | 10 | p.addParameter('betaObject',0.25) % mPIE feedback parameter (object) |
10 | 11 | p.addParameter('betaProbe',0.25) % mPIE feedback parameter (probe) |
11 | 12 | p.addParameter('comStabilizationSwitch', true)% if true, the probe is centered |
|
19 | 20 | p.addParameter('initialProbe','circ') % choose initial probe ('obes', 'rand') |
20 | 21 | p.addParameter('intensityConstraint','standard') % ('standard', 'sigmoid') |
21 | 22 | p.addParameter('makeGIF', false) % probe orthogonalization frequency |
| 23 | +p.addParameter('modulusEnforcedProbeSwitch', false) % activates MEP update |
22 | 24 | p.addParameter('npsm',1) % number of probe state mixtures |
23 | 25 | p.addParameter('nosm',1) % number of object state mixtures |
24 | 26 | p.addParameter('numIterations',1) % number of iterations |
|
27 | 29 | p.addParameter('orthogonalizationFrequency', 10) % probe orthogonalization frequency |
28 | 30 | p.addParameter('positionOrder','random')% position order for sequential solvers ('sequential' or 'random') |
29 | 31 | p.addParameter('probePowerCorrectionSwitch', true) % switch to indicate if probe power correction is applied |
| 32 | +p.addParameter('probeSmoothenessSwitch', false) % imposes probe smootheness |
30 | 33 | p.addParameter('saveMemory', true) % if true, then the algorithm is run with low memory consumption (e.g. detector error is not saved) |
| 34 | +p.addParameter('showObjectSpectrum',false) % show Fourier transform of object |
31 | 35 | p.addParameter('singleSwitch', true) % if true, data is converted to single to save memory and processing time |
32 | 36 | p.addParameter('smoothenessSwitch', false) % if true, apply smoothness constraint to object |
33 | 37 | p.addParameter('objectTVregSwitch', false) % TV regularization |
|
46 | 50 | % algorithmic parameters |
47 | 51 | obj.params.absorbingProbeBoundary = p.Results.absorbingProbeBoundary; |
48 | 52 | obj.params.absObjectSwitch = p.Results.absObjectSwitch; |
49 | | -obj.params.positionOrder = p.Results.positionOrder; |
| 53 | +obj.params.backgroundModeSwitch = p.Results.backgroundModeSwitch; |
| 54 | +obj.params.batchSize = p.Results.batchSize; |
| 55 | +obj.params.comStabilizationSwitch = p.Results.comStabilizationSwitch; |
| 56 | +obj.params.gpuSwitch = p.Results.gpuSwitch; |
50 | 57 | obj.params.intensityConstraint = p.Results.intensityConstraint; |
| 58 | +obj.params.modulusEnforcedProbeSwitch = p.Results.modulusEnforcedProbeSwitch; |
| 59 | +obj.params.positionOrder = p.Results.positionOrder; |
51 | 60 | obj.params.probePowerCorrectionSwitch = p.Results.probePowerCorrectionSwitch; |
| 61 | +obj.params.probeSmoothenessSwitch = p.Results.probeSmoothenessSwitch; |
52 | 62 | obj.params.smoothenessSwitch = p.Results.smoothenessSwitch; |
53 | | -obj.params.comStabilizationSwitch = p.Results.comStabilizationSwitch; |
54 | | -obj.params.gpuSwitch = p.Results.gpuSwitch; |
55 | 63 | obj.params.saveMemory = p.Results.saveMemory; |
| 64 | +obj.params.objectTVregSwitch = p.Results.objectTVregSwitch; |
56 | 65 | obj.params.orthogonalizationFrequency = p.Results.orthogonalizationFrequency; |
57 | | -obj.params.batchSize = p.Results.batchSize; |
58 | 66 | obj.params.zPIEgradientStepSize = p.Results.zPIEgradientStepSize; |
59 | | -obj.params.objectTVregSwitch = p.Results.objectTVregSwitch; |
| 67 | + |
60 | 68 | % general parameters |
61 | 69 | obj.params.npsm = p.Results.npsm; |
62 | 70 | obj.params.nosm = p.Results.nosm; |
|
65 | 73 | obj.params.deleteFrames = p.Results.deleteFrames; |
66 | 74 | obj.params.FourierMaskSwitch = p.Results.FourierMaskSwitch; |
67 | 75 |
|
| 76 | +% monitoring |
| 77 | +obj.monitor.showObjectSpectrum = p.Results.showObjectSpectrum; |
| 78 | + |
68 | 79 | % reconstruction |
69 | 80 | obj.params.numIterations = p.Results.numIterations; |
70 | 81 | obj.params.figureUpdateFrequency = p.Results.figureUpdateFrequency; |
|
0 commit comments