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 a- MeanSquaresobject paired with an appropriate optimizer for registering monomodal images
- Entering on the command line creates a- metric = 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 call- imregister. 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.

