imregtform
Estimate geometric transformation that aligns two 2-D or 3-D images
Syntax
Description
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.
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.
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 helps- imregtformconverge to better results more quickly because scale differences can be considered.
- Both - imregtformand- imregisteruse the same underlying registration algorithm.- imregisterperforms the additional step of resampling- movingto produce the registered output image from the geometric transformation estimate calculated by- imregtform. Use- imregtformwhen you want access to the geometric transformation that relates- movingto- fixed. Use- imregisterwhen 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 the- imregconfigfor more information on the different parameters that can be modified.

