Erin Carrier Nathan Bowman dct.py Updated: 9/18/12
Library for computing Discrete Cosine Transformation (DCT) in 1 and 2 dimensions.
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 |
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 |
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 |
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 |