spyrit.misc.walsh_hadamard.walsh2

spyrit.misc.walsh_hadamard.walsh2(X, H=None)[source]

Return 2D Walsh-ordered Hadamard transform of an image \(H^\top X H\)

Args:

X (np.ndarray): image as a 2d array. The size is a power of two. H (np.ndarray, optional): 1D Walsh-ordered Hadamard transformation matrix

Returns:

np.ndarray: Hadamard transformed image as a 2D array.