Mean square error metric configuration
A MeanSquares
object describes a mean square error metric
configuration that you pass to the function imregister
to solve image registration problems.
You can create a MeanSquares
object using the following
methods:
imregconfig
— Returns a
MeanSquares
object paired with an appropriate optimizer
for registering monomodal images
Entering
metric = registration.metric.MeanSquares;
MeanSquares
objectThe 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);
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.