patch_denoise.space_time.utils.svd_synthesis#

patch_denoise.space_time.utils.svd_synthesis(u_vec, s_vals, v_vec, mean, idx)[source]#

Reconstruct X = (U @ (S * V)) + M with only the max_idx greatest component.

U, S, V must be sorted in decreasing order.

Parameters:
Returns:

np.ndarray

Return type:

The reconstructed matrix.