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 valueCodePudding user response:
You try imshow (ii, [])