Multidimensional Discrete Cosine Transform (DCT)
by Andriy Myronenko
08 May 2009
(Updated 06 May 2010)
Fast forward and inverse Multidimensional Discrete Cosine Transforms (DCT, IDCT).
|
Watch this File
|
| File Information |
| Description |
The function is much faster than Matlab's native (dct, idct, dct2, idct2). It also allows N-D (multidimensional) input.
Example:
x=randn(100,200,300);
y=mirt_dctn(x); % forward DCT
x=mirt_idctn(y); % inverse DCT
Find more at my home page:
http://www.bme.ogi.edu/~myron
Enjoy and comment below if you like it!
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 15 May 2009 |
added a screenshot of computational times of mirt_dctn and mirt_idctn vs Matlab's native (dct,idct,dct2,idct2). |
| 22 May 2009 |
Corrected a bug with processing of 1D row vectors. Now it's as fast as with column vectors (and much faster then 1D Matlab's dct, idct) |
| 06 May 2010 |
I have made it even faster by using only fft, without ifft, for both forward and inverse dct. |
|
Contact us at files@mathworks.com