I Have completed Deblurring by using wiener Filter and now i want to get facial angle and emotion of a persons

1 次查看(过去 30 天)
I = im2double(imread('greyface1.jpg'));
imshow(I);
title('Original Image');
figure();
LEN = 45;
THETA = 15;
PSF = fspecial('motion', LEN, THETA);
blurred = imfilter(I, PSF, 'conv', 'circular');
imshow(blurred);
title('Blurred Image');
figure();
wnr1 = deconvwnr(blurred, PSF, 0);
imshow(wnr1);
title('Restored Image');
figure();
noise_mean = 0;
noise_var = 0.0001;
blurred_noisy = imnoise(blurred, 'gaussian', noise_mean, noise_var);
imshow(blurred_noisy);
title('Simulate Blur and Noise');
figure();
wnr2 = deconvwnr(blurred_noisy, PSF, 0);
imshow(wnr2);
title('Restoration of Blurred, Noisy Image Using NSR=0');
figure();
signal_var = var(I(:));
% Corrected part: Convert to double before using var
uniform_quantization_var = (1/256)^2/12;
wnr5 = deconvwnr(blurred_noisy, PSF, uniform_quantization_var / signal_var);
imshow(wnr5);
title('Restoration of Blurred, Quantized Image Using Computed NSR');
  1 个评论
Kartikeya
Kartikeya 2023-11-20
After successfully implementing deblurring using the Wiener filter, my next objective is to determine facial angles and emotions of individuals. Can anyone share code or steps to follow

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2023-11-20
It's a big, evolving field and of course there are some faces where the emotion is ambiguous or uncertain. Anyway, here are a lot of papers on it. Pick on and code it up. Be forewarned though that the solution is not going to be some simple 300 line script. It will likely be very complex.

Community Treasure Hunt

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

Start Hunting!

Translated by