proxtoolbox.experiments.ptychography package

This subpackage contains the ptychography experiments.

Submodules

proxtoolbox.experiments.ptychography.ptychographyExperiment module

proxtoolbox.experiments.ptychography.ptychographyUtils module

proxtoolbox.experiments.ptychography.ptychographyUtils.circ(X, Y, x0, y0, R)[source]
proxtoolbox.experiments.ptychography.ptychographyUtils.heaviside(M)[source]
proxtoolbox.experiments.ptychography.ptychographyUtils.ellipsis(X, Y, x0, y0, a, b)[source]
proxtoolbox.experiments.ptychography.ptychographyUtils.prop_nf_pa(im, l, delta_z, dx, dy)[source]

Propagates a 2D-wave field within a paraxial approximation into the optical near field.

The validity of the small-angle approximation is enforced. If it is not obeyed, the function returns an error. If sampling of the phase chirp function is not sufficient, the field is embedded into a wider field of fiew, filling new pixels, so that a continuous boundary conditions are obeyed. If the field has been enlarged prior to propagation, it is cut back to the original size after propagation. Note that this cropping generally destroys the conservation of the total fluence in the array.

Original Matlab file author K. Giewekemeyer Original file from sftp://klaus@login.roentgen.physik.uni-goettingen.de/ home/klaus/Documents/Uni/Daten/Messzeiten/0909_BESSY/analysis_at_home/matlab/main/tools last modified on 07.07.2010. last modified and checked 13.10.2010.

Parameters:
im : array_like

Incident 2D wave field

l : number

Wave length

delta_z : number

Propagation distance

dx, dy : int

Pixel widths in horizontal and vertical direction

Returns:
array_like

Propagated wave field

proxtoolbox.experiments.ptychography.ptychographyUtils.im2hsv(im, th)[source]

TODO: what this code does

Original Matlab file author K. Giewekemeyer (based on routine pie_simulation_code.m by M. Dierolf et al.)