imregtform
Estimate geometric transformation that aligns two 2-D or 3-D images
Syntax
Description
estimates the geometric transformation that aligns the moving image
tform = imregtform(moving,fixed,tformType,optimizer,metric)moving with the fixed image fixed.
tformType defines the type of transformation to estimate.
optimizer describes the method for optimizing the metric.
metric defines the quantitative measure of similarity
between the images to optimize.
estimates the geometric transformation where tform = imregtform(moving,Rmoving,fixed,Rfixed,tformType,optimizer,metric)Rmoving and
Rfixed specify the spatial referencing objects associated
with the moving and fixed images. The
output tform is a geometric transformation object in units
defined by the spatial referencing objects Rmoving and
Rfixed.
estimates the geometric transformation using name-value arguments to control aspects
of the operation.tform = imregtform(___,Name=Value)
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
When you have spatial referencing information available, it is important to provide this information to
imregtform, using spatial referencing objects. This information helpsimregtformconverge to better results more quickly because scale differences can be considered.Both
imregtformandimregisteruse the same underlying registration algorithm.imregisterperforms the additional step of resamplingmovingto produce the registered output image from the geometric transformation estimate calculated byimregtform. Useimregtformwhen you want access to the geometric transformation that relatesmovingtofixed. Useimregisterwhen you want a registered output image.Getting good results from optimization-based image registration usually requires modifying optimizer and/or metric settings for the pair of images being registered. The
imregconfigfunction provides a default configuration that should only be considered a starting point. See the output of theimregconfigfor more information on the different parameters that can be modified.

