imregtform
Estimate geometric transformation that aligns two 2-D or 3-D images
Syntax
Description
estimates the geometric transformation that aligns the moving imagetform
= imregtform(moving
,fixed
,transformType
,optimizer
,metric
)moving
with the fixed imagefixed
。transformType
is a string scalar or character vector that defines the type of transformation to estimate.optimizer
is an object that describes the method for optimizing the metric.metric
is an object that defines the quantitative measure of similarity between the images to optimize. The outputtform
is a geometric transformation object that mapsmoving
tofixed
。
estimates the geometric transformation wheretform
= imregtform(moving
,Rmoving
,fixed
,Rfixed
,transformType
,optimizer
,metric
)Rmoving
andRfixed
specify the spatial referencing objects associated with themoving
andfixed
images. The outputtform
is a geometric transformation object in units defined by the spatial referencing objectsRmoving
andRfixed
。
estimates the geometric transformation using name-value pairs 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
。使用imregtform
when you want access to the geometric transformation that relatesmoving
tofixed
。使用imregister
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.