SNR between two images in MATLAB
5 次查看(过去 30 天)
显示 更早的评论
Below is the algorithm for calculating the SNR of two images in MATLAB:
A = imread('Yes_Noise.png');
A = imgaussfilt(A, 2); %Filtered image
ref = imread('Yes_Noise.png'); %Noisy image
test = snr(ref,ref-A)
Is it the algorithm rigth? It's purpose is find out the SNR value between filtered and nosiy image.
4 个评论
Adam
2019-2-21
![21-02-2019 16-32-34.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/205250/21-02-2019%2016-32-34.png)
is what the help says, assuming snr is the Matlab Signal Processing Toolbox function. So assuming the difference between the smoothed image and the original is considered noise then yes, subtractubing the filtered image from the original will give this.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!