MeanSquares
Mean square error metric configuration
Description
A MeanSquares object describes a mean square error metric
configuration that you pass to the function imregister to solve image registration problems.
Creation
You can create a MeanSquares object using the following
methods:
imregconfig— Returns aMeanSquaresobject paired with an appropriate optimizer for registering monomodal imagesEntering
on the command line creates ametric = registration.metric.MeanSquares;
MeanSquaresobject
Examples
Tips
The mean squares metric is an element-wise difference between two input images. The ideal value is zero. You can examine the computed values of mean square error if you enable
'DisplayOptimization'when you callimregister. For example,movingRegistered = imregister(moving,fixed,'rigid',optimizer,metric,'DisplayOptimization',true);
Algorithms
The mean squares image similarity metric is computed by squaring the difference of corresponding pixels in each image and taking the mean of the squared differences.

