module documentation
Uses SSA to get values for interpolation of data
Function | ssa |
pass in a set of pixels |
Function | ssa |
Undocumented |
Variable | _lgr |
Undocumented |
def ssa_deviations_interpolate_at_mask(ssa:
SSA
, mask: np.ndarray[ [ NM], bool]
, start: int | None
= 0, stop: int | None
= None, value: float
= 0.5, show_plots: bool | int
= 0):
¶
- Using SSA for interpolation. E.g.,
- pass in a set of pixels
- Calculate the 'difference from median of SSA component' score for each pixel
3) For each pixel, only combine SSA components when the |score| < 'some value' This should ensure that 'extreme' values for that pixel are ignored and the reconstructed pixel value is more similar to the surrounding pixels.
This should help when interpolating across a e.g., "hot" pixel as the components that contribute to the "hotness" will be ignored and the components that are more similar to the surroundings will contribute.