[問題] FFTW宣告問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
VC++ Dev c++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
FFTW
問題(Question):
影像處理時要用到FFT 但宣告FFTW時我的輸入是一個二維陣列 資料型態宣告是double
但宣告fftw_complex時似乎只有整數 請教各位高手這有解嗎orz|||
EX.
fftw_complex FFTW_IN[y][x];
FFTW_IN[y][x] = HSI_1[y][x].I;
而HSI_1[y][x].I "I"在宣告時是double(運算的需要)
但fftw_complex 是int? 總之就是存不進去orz
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
http://codepad.org/gXjHwihB
補充說明(Supplement):
錯誤出現在261行
[Error] incompatible types in
assignment of 'double' to 'fftw_complex {aka double [2]}'
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 118.161.91.132
→
10/20 21:08, , 1F
10/20 21:08, 1F
→
10/20 21:14, , 2F
10/20 21:14, 2F
※ 編輯: jo4i5566 來自: 220.129.12.26 (10/20 21:15)
→
10/20 22:09, , 3F
10/20 22:09, 3F
→
10/20 22:19, , 4F
10/20 22:19, 4F
※ 編輯: jo4i5566 來自: 220.129.12.26 (10/20 22:28)
討論串 (同標題文章)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章