idct#
- deepinv.physics.functional.idct(x, norm=None)[source]#
The inverse to DCT-II, which is a scaled Discrete Cosine Transform, Type III
For the meaning of the parameter
norm
, see: https://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.fftpack.dct.htmlParts of this code are adapted from the
torch-dct
repository by zh217: zh217/torch-dct- Parameters:
x (torch.Tensor) – the input signal
norm (None, str) – the normalization,
None
or'ortho'
- Returns:
(
torch.Tensor
) the inverse DCT-II of the signal over the last dimension