Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ここで質問するのが適切かどうかはわかりませんが、2 つの画像の MSE を計算する方法に関する段階的なガイドはどこにありますか?
公式は知っているが、それを実践する方法がわからない。
C では、次のようなことができます。
int sum_sq = 0; double mse; for (i = 0; i < h; ++i) { for (j = 0; j < w; ++j) { int p1 = image1[i][j]; int p2 = image2[i][j]; int err = p2 - p1; sum_sq += (err * err); } } mse = (double)sum_sq / (h * w);