Admin Production ni-theme
Current Publication

DCT2D

LabWindows/CVI

DCT2D

Advanced Analysis Library Only

AnalysisLibErrType DCT2D (void *inputArray, ssize_t numberOfRows, ssize_t 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 void * The two-dimensional input signal.
numberOfRows ssize_t The number of rows in inputArray.
numberOfColumns ssize_t The number of columns in inputArray.
Output
Name Type Description
outputArray void * 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.

Additional Information

Library: Advanced Analysis Library

Include file: analysis.h

LabWindows/CVI compatibility: LabWindows/CVI 8.0 and later