skbeam.core.cdi.pi_modulus

skbeam.core.cdi.pi_modulus(recon_pattern, diffracted_pattern, offset_v=1e-12)

Transfer sample from real space to q space. Use constraint based on diffraction pattern from experiments.

Parameters
recon_patternarray

reconstructed pattern in real space

diffracted_patternarray

diffraction pattern from experiments

offset_vfloat, optional

add small value to avoid the case of dividing something by zero

Returns
array :

updated pattern in real space