필터 지우기
필터 지우기

i wann to calculate MSE & PSNR.

조회 수: 3 (최근 30일)
Gautam Kudale
Gautam Kudale 2012년 6월 9일
i am doing edge detection. i have taken 1 gray scale image. and by applying diff edge detection methods on them i find the results. i have calculated mean and SD of resultant image.
now i want to calculate MSE & PSNR. of them
pls guide me

답변 (2개)

Sajid Khan
Sajid Khan 2013년 6월 21일
Hi Gautam,
It's the link for calculating root mean square error from which you can calculate mean square error as the difference is just a root involved in one
And here is the link to calculate PSNR

Sajid Khan
Sajid Khan 2013년 6월 21일
Or try this if you want to calculate mse for a 2D array,
err_val = mean(mean((orig_matrix - est_matrix).^2));
But if you have 1d Array, you can use mean function only once, by the way if you call mean multiple times without having it's requirement, the result will be same, it will just waste your debugging time only.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by