Multidimensional Discrete Cosine Transform (DCT)
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!
Cita come
Andriy Myronenko (2024). Multidimensional Discrete Cosine Transform (DCT) (https://www.mathworks.com/matlabcentral/fileexchange/24050-multidimensional-discrete-cosine-transform-dct), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.5.0.0 | I have made it even faster by using only fft, without ifft, for both forward and inverse dct. |
||
1.4.0.0 | 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) |
||
1.3.0.0 | added a screenshot of computational times of mirt_dctn and mirt_idctn vs Matlab's native (dct,idct,dct2,idct2). |
||
1.0.0.0 |