Info
此问题已关闭。 请重新打开它进行编辑或回答。
How are these two Images different?
1 次查看(过去 30 天)
显示 更早的评论
Hello,
I am new to image processing.so, I have difficulty in differentiating these two images attaches. First image is Original Image(org.jpg) while the second image is obtained by applying Gaussian transform(nor.jpg). Both the images have same background to foreground ratio and size but one of them looks bigger.
My question is why is it so?
The code used is given below: %% Usage:- Scale Normalization % Date 11th June, 2014 1.48 A.M.
function IF_Img=FaceNormalization(I) close all;
% Applying Gaussian smoothing filter sigma=0.01; I=im2double(rgb2gray(I)); PQ=size(I); F_Img=fft2(I); H=zeros(PQ(1),PQ(2)); for i=1:PQ(1); % filter for j=1:PQ(2); H(i,j)=(sigma*sigma)*(1/(2*pi*sigma*sigma).*(-(i*i+j*j)/(2*sigma*sigma)).*exp(-(i*i+j*j)/(2*sigma*sigma))); end; end; H=fftshift(H); % figure;imshow(H); F_Img=fftshift(F_Img); % figure;imshow(F_Img); IF_Img=real(ifft2(H.*F_Img))+I; IF_Img=IF_Img(1:size(I,1),1:size(I,2)); % IF_Img=convn(I,H); % figure; imagesc(IF_Img); colormap(gray);
Thanks!!
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!