- MSE: https://in.mathworks.com/help/images/ref/immse.html
- PSNR: https://in.mathworks.com/help/images/ref/psnr.html
how to find MSE and PSNR of an image
9 ビュー (過去 30 日間)
古いコメントを表示
we were given a salt and pepper picture and we were asked to filter it, after that we have to find the MSE and PSNR
mse_median = immse(snp,fltered_image)
is this command correct for MSE?
0 件のコメント
回答 (1 件)
Yash
2023 年 12 月 2 日
Hello Nouf,
Yes, the immse function can be used to calculate the mean squared error (MSE) between two images in MATLAB. The command you provided looks correct, assuming that snp is the original salt and pepper image and filtered_image is the filtered version of the image.
To calculate the peak signal-to-noise ratio (PSNR), you can use the psnr function in MATLAB. Here's an example code snippet:
>> psnr_val = psnr(filtered_image, snp); % calculating PSNR
This code calculates the PSNR between the filtered image and the original salt and pepper image, and stores the result in the variable psnr_val.
To know more about the immse and psnr functions in MATLAB, you can refer to below documentations:
Hope this helps!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!