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
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 helpsimregtform
converge to better results more quickly because scale differences can be considered.Both
imregtform
andimregister
use the same underlying registration algorithm.imregister
performs the additional step of resamplingmoving
to produce the registered output image from the geometric transformation estimate calculated byimregtform
. Useimregtform
when you want access to the geometric transformation that relatesmoving
tofixed
. Useimregister
when 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
imregconfig
function provides a default configuration that should only be considered a starting point. See the output of theimregconfig
for more information on the different parameters that can be modified.