Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How are these two Images different?

조회 수: 2 (최근 30일)
Rageeni sah
Rageeni sah 2014년 6월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
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개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by