Skip to content

nabu.thirdparty.tomopy_phase

source module nabu.thirdparty.tomopy_phase

Module for phase retrieval.

This code is part of tomopy: https://github.com/tomopy/tomopy It was adapted for being stand-alone, without job distribution. See the license above for more information.

Functions

  • retrieve_phase Perform single-step phase retrieval from phase-contrast measurements.

source retrieve_phase(tomo, pixel_size=0.0001, dist=50, energy=20, alpha=0.001, pad=True, ncore=None, nchunk=None)

Perform single-step phase retrieval from phase-contrast measurements.

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.