dctCuda Module

This contains 1-dimensional and 2-dimensional, forward and inverse Discrete Cosine Transforms (DCT). Uses GPU acceleration via PyCUDA.

dctCuda.dct(signal)

Performs a dct on a given signal.

This function performs a dct on signal using CUDA GPU.

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

Performs a 2-dimensional dct on a given signal.

This function performs a dct on signal using CUDA GPU.

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

Performs an inverse dct on a given signal.

This function performs an inverse dct on signal using CUDA GPU.

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

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

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

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

Previous topic

dct Module

Next topic

dwt Module

This Page