Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How are these two Images different?

2 visualizaciones (últimos 30 días)
Rageeni sah
Rageeni sah el 11 de Jun. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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!!

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by