Advanced Analysis Library Only
AnalysisLibErrType DCT2D (void *inputArray, int numberOfRows, int numberOfColumns, void *outputArray);
Computes the two-dimensional Discrete Cosine Transform (DCT) of a matrix inputArray, which is defined as follows:
| where | M and N are the number of rows and the number of columns in inputArray respectively |
| x(m,n) is the element in inputArray with row number m and column number n | |
| y(u,v) is the element of outputArray with row number u and column number v |
| Input | ||
| Name | Type | Description |
| inputArray | numeric array | The two-dimensional input signal. |
| numberOfRows | integer | The number of rows in inputArray. |
| numberOfColumns | integer | The number of columns in inputArray. |
| Output | ||
| Name | Type | Description |
| outputArray | numeric array | The two-dimensional DCT of inputArray. |
| Name | Type | Description |
| status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |