Clear Filters
Clear Filters

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

1 view (last 30 days)
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 Comment
Kartikeya
Kartikeya on 20 Nov 2023
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

Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 20 Nov 2023
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!