pysdic.matching_correction#
- matching_correction(result_1, result_2, groups, *, scale=1.0)[source]#
Map the gray levels of the second view onto the statistics of the first one, with the approximate derivative (constant statistics):
\[g_1' = \text{scale} \cdot g_1, \qquad g_2' = \text{scale} \cdot \left( (g_2 - m_2) \frac{s_1}{s_2} + m_1 \right)\]Warning
With several pairings, each pairing keeps the contrast of its first view: the pairings no longer have the same weight in the optimization. Prefer
znssd_correction()when several pairings are combined.- Parameters:
result_1 (ImageProjectionResult) – See
znssd_correction().result_2 (ImageProjectionResult) – See
znssd_correction().groups (GrayLevelGroups) – See
znssd_correction().scale (Real) – See
znssd_correction().
- Returns:
The corrected projections (new objects).
- Return type:
Tuple[
pysdic.ImageProjectionResult,pysdic.ImageProjectionResult]