tf.signal.idct

View source on GitHub

Computes the 1D Inverse Discrete Cosine Transform (DCT) of input.

tf.signal.idct(
    input, type=2, n=None, axis=-1, norm=None, name=None
)

Currently only Types I, II and III are supported. Type III is the inverse of Type II, and vice versa.

Note that you must re-normalize by 1/(2n) to obtain an inverse if norm is not 'ortho'. That is: signal == idct(dct(signal)) * 0.5 / signal.shape[-1]. When norm='ortho', we have: signal == idct(dct(signal, norm='ortho'), norm='ortho').

Args:

Returns:

A [..., samples] float32/float64 Tensor containing the IDCT of input.

Raises:

Scipy Compatibility

Equivalent to scipy.fftpack.idct for Type-I, Type-II and Type-III DCT.