Home > other >  Fourier transform (1) ^ (x, y) centralized method is not successful
Fourier transform (1) ^ (x, y) centralized method is not successful

Time:11-03

Matlab programming, Fourier transform center paraphrase (1) ^ (x + y) method to calculate the Fourier spectrum, not to focus on the middle, can you instruct me? Below is the code:
I=imread (' rice. PNG ');
Size_i=size (I);
For a=1: size_i (1, 1)
A for b=1: size_i (1, 2)
I (a, b)=I (a, b) * (1) ^ (a + b);
End
End
Ii=fft2 (I);
For a=1: size_i (1, 1)
A for b=1: size_i (1, 2)
Im (a, b)=SQRT ((real (a, b) (ii)) ^ 2 + (imag (a, b) (ii)) ^ 2)/256 ^ 2;
End
End
Figure
Imshow (im)

In addition, I have found the last calculation when im if not in addition to 256 ^ 2, im image is a piece of white, in addition to the principle of 256 ^ 2 is what?

CodePudding user response:


This is what I do as a result, the complement, you see

CodePudding user response:

Divided by the square is to filter the result after no more than you the range of pixel value

CodePudding user response:

You try imshow (ii, [])
  • Related