Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How are these two Images different?

2 Ansichten (letzte 30 Tage)
Rageeni sah
Rageeni sah am 11 Jun. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 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!!

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by