[MATLAB] "dct2" function vs. [C language] "fftw_plan_r2r_2d" function
Afficher commentaires plus anciens
Hello there,
I'm trying to convert a C code to a MATLAB code.
Everything was going well but when I replaced the " fftw_plan_r2r_2d function" by the " dct2 MATLAB function". I didn't get the same result..
The discret cosine transform in C is defined as :
fftw_plan_r2r_2d((int)ny, (int)nx, data_fft, data_out, FFTW_REDFT01,FFTW_REDFT01, FFTW_ESTIMATE)
FFTW_REDFT01 stand for DCT-II ("The DCT")
Do you guys have any idea how can I get the same result as the C function ?
Kind Regards,
Réponses (0)
Catégories
En savoir plus sur Image Transforms dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!