MATLAB: Finding MSE and MAE for RGB image

maemse

i have a equation below please tell how to find MSE and MAE for RGB image

Best Answer

To within a constant factor that might depend upon image size,
MSE = sum( (FirstImage(:) - SecondImage(:)).^2 );