MSE_color.m
上传用户:lcj80317
上传日期:2007-01-26
资源大小:625k
文件大小:0k
- function mse_color = MSE_color(I, J)
- % 计算彩色图像(含RGB三个通道)的均方差
- [m, n, o] = size(I);
- sigma = 0;
- for i = 1:m
- for j = 1:n
- for k = 1:o
- sigma = sigma + ( I(i,j,k) - J(i,j,k) )^2;
- end
- end
- end
- mse_color = sigma / (m*n) / 3;