Introduction
Here, the function of MATLAB is used for image registration, the parameters of registration are set before registration, and the Imregister () function is called to obtain the registration image. 1. Encoding
The MATLAB tool function used here is
Moving_reg = Imregister (moving,fixed,transformtype,optimizer,metric)
[Moving_reg,r_reg] = imregister (Moving, rmoving,fixed,rfixed,transformtype,optimizer,metric)
___ = Imregister (___,name,value)
Moving: Floating image
Fixed: Reference image
Transformtype: Types of Image transformations
Optimizer and Metric: parameters for registration
There are several types of image transformations in MATLAB
Examples of implementations
%img_b Floating CT image
%img_a reference MRI image
% Set registration parameters, mutual information as a measure
[Optimizer, metric] = imregconfig (' multimodal ');
Optimizer. Growthfactor = 1.01;
Optimizer. Epsilon = 1.5e-6;
Optimizer. Initialradius = 0.001;
Optimizer. Maximumiterations = $;
% registration
moving = Imregister (Img_b, Img_a, ' affine ', optimizer, metric);
% display the image of the registration figure
();
Imshowpair (img_a, moving, ' Scaling ', ' joint ');
Results: