dct

From DavinciWiki
Jump to: navigation, search


Description

Computes the discrete cosine transform.

Arguments and Return Values

Arguments: A numeric array, an axis and a direction

Return Value: A double numeric array

Usage

Syntax: dct(object = VAL, axis = [x][y][z], dir = [1/-1])

The dct() function computes the forward or inverse discrete cosine transform of values along one or more axis. If no axis is specified, then all the computation is performed along all three axis. If the direction is not specified, a forward dct is assumed.

The dct() function always returns a DOUBLE.

Examples

dv> # This example computes the dct along the X and Y axis, producing an array with the same Z dimension of the input data.

dv> a
20x20x20 array of float, bsq format [32,000 bytes]

dv> d = dct(object=a, axis=xy)
20x20x20 array of double, bsq format [64,000 bytes]

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left


Recent Core Changes

Modified On: 03-23-2006

Personal tools