pysdic.znssd_correction#

znssd_correction(result_1, result_2, groups, *, scale=1.0)[source]#

Normalize the gray levels of both views (ZNSSD) with the statistics of their groups, with the approximate derivative (constant statistics):

\[g' = \text{scale} \cdot \frac{g - m}{s}, \qquad \frac{\partial g'}{\partial \gamma} \approx \frac{\text{scale}}{s} \frac{\partial g}{\partial \gamma}\]
Parameters:
Returns:

The corrected projections (new objects): gray levels and Jacobians (jacobian_dx and jacobian_dp if present) corrected.

Return type:

Tuple[pysdic.ImageProjectionResult, pysdic.ImageProjectionResult]