Why am I getting a blank image as my output?
问题 Here's some code I wrote to display the magnitude spectrum of an image: orig_imdata = imread('Original_Image.png'); spec_orig = fft2(double(orig_imdata)); spec_orig2 = abs(spec_orig); spec_img = fftshift(spec_orig2); imshow(spec_img); When I comment out the use of abs and just fftshift the image, I get an image, albeit with the phase and the magnitude. If I apply the abs function right after using fftshift , I get a blank result from imshow . I need an image of the magnitude of the spectral