DCT2D

Advanced Analysis Library Only

AnalysisLibErrType DCT2D (void *inputArray, int numberOfRows, int numberOfColumns, void *outputArray);

Purpose

Computes the two-dimensional Discrete Cosine Transform (DCT) of a matrix inputArray, which is defined as follows:

whereM 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
DCT2D performs the following two steps to compute the 2D DCT:

  1. Performs a one-dimensional DCT row-by-row on input matrix inputArray.
  2. Performs a one-dimensional DCT column-by-column.

Parameters

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.

Return Value

Name Type Description
status AnalysisLibErrType A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants.