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:
result_1 (
pysdic.ImageProjectionResult) – The projection in the first view, with gray levels of shape \((N_p, C)\).result_2 (
pysdic.ImageProjectionResult) – The projection in the second view, with gray levels of shape \((N_p, C)\).groups (
GrayLevelGroups) – The groups of the points (seecompute_gray_level_groups()).scale (Real, optional (default:
1.0)) – The factor applied after the normalization (strictly positive), e.g.255to get readable gray levels.
- Returns:
The corrected projections (new objects): gray levels and Jacobians (
jacobian_dxandjacobian_dpif present) corrected.- Return type:
Tuple[
pysdic.ImageProjectionResult,pysdic.ImageProjectionResult]