phaseretrieval.tiehom¶
Functions:
tiehom_plan (im, beta, delta, energy, ...) |
Pre-compute data to save time in further execution of phase_retrieval with TIE-HOM (Paganin’s) algorithm. |
tiehom (im, plan[, nr_threads]) |
Process a tomographic projection image with the TIE-HOM (Paganin’s) phase retrieval algorithm. |
-
stp_core.phaseretrieval.tiehom.
tiehom
(im, plan, nr_threads=2)[source]¶ Process a tomographic projection image with the TIE-HOM (Paganin’s) phase retrieval algorithm.
Parameters: - im (array_like) – Flat corrected image data as numpy array.
- plan (structure) – Structure with pre-computed data (see tiehom_plan function).
- nr_threads (int) – Number of threads to be used in the computation of FFT by PyFFTW (default = 2).
-
stp_core.phaseretrieval.tiehom.
tiehom_plan
(im, beta, delta, energy, distance, pixsize, padding)[source]¶ Pre-compute data to save time in further execution of phase_retrieval with TIE-HOM (Paganin’s) algorithm.
Parameters: - im (array_like) – Image data as numpy array. Only image size (shape) is actually used.
- beta (double) – Immaginary part of the complex X-ray refraction index.
- delta (double) – Decrement from unity of the complex X-ray refraction index.
- energy [KeV] (double) – Energy in KeV of the incident X-ray beam.
- distance [mm] (double) – Sample-to-detector distance in mm.
- pixsize [mm] (double) – Size in mm of the detector element.
- padding (bool) – Apply image padding to better process the boundary of the image