dct Module

Erin Carrier Nathan Bowman dct.py Updated: 9/18/12

Library for computing Discrete Cosine Transformation (DCT) in 1 and 2 dimensions.

dct.dct(signal)

Performs a dct on a given signal.

This function performs a dct on signal.

Parameters:signal (list, numpy array) – signal
Returns:transformed signal
Return type:numpy array
dct.dct2(signal)

Performs a 2-dimensional dct on a given signal.

This function performs a 2-dimensional dct on signal.

Parameters:signal (2-dimensional numpy array) – signal
Returns:transformed signal
Return type:2-dimensional numpy array
dct.idct(transformed)

Performs an inverse dct on a given signal.

This function performs an inverse dct on signal.

Parameters:transformed – transformed signal
Returns:inverted signal
Return type:numpy array
dct.idct2(transformed)

Performs a 2-dimensional inverse dct on a given signal.

This function performs a 2-dimensional inverse dct on signal.

Parameters:transformed – transformed signal
Returns:inverted signal
Return type:2-dimensional numpy array

Previous topic

Welcome to PyGASP’s documentation!

Next topic

dctCuda Module

This Page