[MATLAB] "dct2" function vs. [C language] "fftw_plan_r2r_2d" function

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,

Respuestas (0)

Productos

Preguntada:

el 19 de En. de 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by