mrpro.utils.filters.dct_matrix

mrpro.utils.filters.dct_matrix(n: int, dtype: dtype = torch.float32) → Tensor

Create an orthonormal DCT-II transformation matrix.

Parameters:
  • n (int) – Size of the transformation.

  • dtype (dtype, default: torch.float32) – Data type of the matrix.

Returns:

Orthonormal DCT-II matrix of shape (n, n).