Home > Software engineering >  Write the final result of matlab homomorphic filtering a completely black how to return a responsibi
Write the final result of matlab homomorphic filtering a completely black how to return a responsibi

Time:11-03

Write the final result of matlab homomorphic filtering a completely black how to return a responsibility?? Can someone help me analysis?
[image_0, map]=imread (' E:/2. BMP);
Image_0=rgb2gray (image_0);
Image_0=double (image_0)/255;
Image_1=log (image_0 + 1);
Image_2=fft2 (image_1);
N=3;
D0=0.05 * PI;
Rh=0.8;
Rl=0.5;
[the row, col]=size (image_2);
For k=1:1: row;
For l=1:1: col;
D1 (k, l)=SQRT ((k ^ 1 ^ 2 + 2));
H (k, l)=rl + (rh/(1 + (D0/D1 (k, l)) ^ (2 * n)));
End
End

Image_3=(image_2. * H);
Image_4=ifft (image_3);
Image_5=(exp (image_4) - 1);

Figure (1)
Imshow (image_0, map)
Figure (2)
Imshow (real (image_5), map)

CodePudding user response:

Data not come out
  • Related