fshift = np.fft.fftshift(f) #將FFT的DC分量移到頻譜中心, 輸出為複數 magnitude_spectrum = 20*np.log(np.abs(fshift)) #先取絕對值, 表示取模, ...
確定! 回上一頁