Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How are these two Images different?

1 visualizzazione (ultimi 30 giorni)
Rageeni sah
Rageeni sah il 11 Giu 2014
Chiuso: MATLAB Answer Bot il 20 Ago 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!!

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by