How can I find PSNR values of the denoised image of the SRAD filter.
조회 수: 1 (최근 30일)
이전 댓글 표시
I had downloaded the MATLAB code for ' speckle reducing anisotropic diffussion(SRAD)' filter from the link "http://viva.ee.virginia.edu/downloads.html". But I could not find the PSNR values of the denoised image.I have used the following codes to find PSNR values:
I=imread('my_image');
X=imnoise(I,'speckle',.01);
rect = [10 15 40 40];
[J,rect]=SRAD(X,10,0.9,rect);
imshow(J,[]);
MSE_W=mean(mean(((double(uint8(I)))-(double(uint8(J)))).^2));
PSNR_W=10*log10(255^2/MSE_W)
Can anyone help me in this matter?
댓글 수: 0
채택된 답변
Iman Ansari
2013년 4월 19일
Hi. Your J is between [0 1]:
MSE_W=mean(mean(((double(uint8(I)))-(double(uint8(J.*255)))).^2));
PSNR_W=10*log10(255^2/MSE_W)
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!