MATLAB: How to obtain rms error

image registration and rms error

Please tell me how to calculate the rms error in image registration?

Best Answer

Wouldn't it just go like this
difference = single(image1) - single(image2);
squaredError = difference .^ 2;
meanSquaredError = sum(squaredError(:)) / numel(image1);
rmsError = sqrt(meanSquaredError);
Of course you could compact that all into one line if you want.