[MATLAB] "dct2" function vs. [C language] "fftw_plan_r2r_2d" function
Ältere Kommentare anzeigen
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,
Antworten (0)
Kategorien
Mehr zu Image Transforms finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!