clc; clear; clear all;
I=zeros (256256);
I (88-168124:132)=1;
Imshow (I);
J=fft2 (I);
F=abs (J);
J1=fftshift (F);
Figure, imshow (J1, [5] 50);
J=imrotate (I, 90, 'bilinear', 'crop');
Figure, imshow (J);
J1=fft2 (J);
F=abs (J1);
J2=fftshift (F);
Figure, imshow (J2, [5] 50);
Why do you want to absolute value of J, a correction of Fourier spectrum again?
I=imread (' 1. PNG ');
Figure (1);
Imshow (real (I));
I=I (:, :, 3);
FftI=fft2 (I);
SfftI=fftshift (fftI);
RRfdp1=real (sfftI);
IIfdp1=imag (sfftI);
A=SQRT (RRfdp1. ^ 2 + IIfdp1. ^ 2);
A=(a - min (min (a)))/(Max (Max) (a) - min (min (a))) * 225;
Figure (2);
Imshow (real) (a);
Why the second first realistic side of these two paragraphs real (I) the result is the same?