This contains 1-dimensional and 2-dimensional, forward and inverse Discrete Cosine Transforms (DCT). Uses GPU acceleration via PyCUDA.
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 |
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 |
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 |
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 |