A discrete cosine transform (DCT) expresses a finite sequence of data points in terms of a sum of cosine functions oscillating at different frequencies. DCTs are important to numerous applications in science and engineering, from lossy compression of audio (e.g. MP3) and images (e.g. JPEG) (where small high-frequency components can be discarded), to spectral methods for the numerical solution of partial differential equations.
The following Matlab project contains the source code and Matlab examples used for two types dct ii, dct iv and dst ii, dst iv.
these two functions are used to transform array of data into:
1- DCT-II or DCT-IV
2- DST-II or DST-IV