Write the pseudo code for Mean Square Error

 採用された回答

Ameer Hamza
Ameer Hamza 2018 年 4 月 26 日

1 投票

m = ...; % set values of m, n, f, s
n = ...;
f = ...;
s = ...;
msq = 0
for i=1:n
for j=1:m
msq = msq + (f(i, j) - s(i, j)).^2
end
end
msq = msq/(m*n);

2 件のコメント

Bleard Rexhaj
Bleard Rexhaj 2018 年 4 月 26 日
Thank you very much i also noticed that it says f(i,j) is the original image and s(i,j) is the noisy image does it matter
Ameer Hamza
Ameer Hamza 2018 年 4 月 26 日
No, the equation will remain same.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by