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:
u_vec (numpy.ndarray)
s_vals (numpy.ndarray)
v_vec (numpy.ndarray)
mean (numpy.ndarray)
idx (int)
- Returns:
np.ndarray
- Return type:
The reconstructed matrix.