필터 지우기
필터 지우기

Mean Square Error (MSE)

조회 수: 7 (최근 30일)
Raman kumar
Raman kumar 2015년 10월 21일
답변: Image Analyst 2015년 10월 21일
there are 208 images and the Dimension of each image is 256*256, now for each image I have extracted RGB value i.e 256*3 (768) then I have obtain a feature vector in fvector(v,z) the dimensions of fvector is 208*768. Now i need to calculate MSE, the MSE should be like
MSE of 1 with 1=
MSE of 1 with 2=
MSE of 1 with 3=
.
.
.
.
.
.
MSE of 1 with 208
MSE of 2 with 1
MSE of 2 with 2.
.
.
.
.
.
.
.
.
MSE of 208 with 208
How to calculate this?
  댓글 수: 1
Walter Roberson
Walter Roberson 2015년 10월 21일
"MSE of 1 with 3" -- what does that even mean ?

댓글을 달려면 로그인하십시오.

답변 (2개)

Guillaume
Guillaume 2015년 10월 21일
I'm assuming that the MSE you refer to is calculated according to the first formula on the wikipedia page. To apply this to your feature vector, use bsxfun:
mse = squeeze(sum(bsxfun(@minus, fvector, permute(fvector, [3 2 1])) .^ 2, 2))
element ij of the mse matrix is the mean square error of feature vector i with feature vector j. The matrix is obviously symmetrical.

Image Analyst
Image Analyst 2015년 10월 21일
There is an immse() function in the Image Processing Toolbox that you might want to use.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by