tomopy.prep.phase

Module for phase retrieval.

Functions:

retrieve_phase(tomo[, pixel_size, dist, …]) Perform single-step phase retrieval from phase-contrast measurements [Paganin:02].
tomopy.prep.phase.retrieve_phase(tomo, pixel_size=0.0001, dist=50, energy=20, alpha=0.001, pad=True, ncore=None, nchunk=None)[source]

Perform single-step phase retrieval from phase-contrast measurements [Paganin:02].

Parameters:
  • tomo (ndarray) – 3D tomographic data.
  • pixel_size (float, optional) – Detector pixel size in cm.
  • dist (float, optional) – Propagation distance of the wavefront in cm.
  • energy (float, optional) – Energy of incident wave in keV.
  • alpha (float, optional) – Regularization parameter.
  • pad (bool, optional) – If True, extend the size of the projections by padding with zeros.
  • ncore (int, optional) – Number of cores that will be assigned to jobs.
  • nchunk (int, optional) – Chunk size for each core.
Returns:

ndarray – Approximated 3D tomographic phase data.