Deconvolution and image brightness
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
So this is the original image:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/444078/image.jpeg)
Adding noise to the image:
noise_variance = 0.05;
noise_blur_img = imnoise(blurred_test_img1,"gaussian",0,noise_variance);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/444083/image.jpeg)
and this is the restored image using deconvwnr:
imden = wdenoise2(noise_blur_img, 9);
signal_variance = var(dimg_test1(:));
NSR1 = (noise_variance)/(signal_variance);
img_restored2 = deconvwnr(imden, PSF,NSR1); %PSF = fspecial('motion', 21, 5);
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/444088/image.jpeg)
My question is: why is the restored image using deconvolution made the image's brightness go down ? And how can I fix it ?
P.S: I am still getting used to posting quetions on Matlab so I apologize if the formatting is wrong.
EDIT: I have attached the original image and the code with which I added noise and blur.
3 commentaires
Pratyush Roy
le 22 Déc 2020
It will be extremely helpful, if you can provide the full code so that I can reproduce every step from my end.
Réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!