imregconfig() - Image Processing
[optimizer,metric]
= imregconfig(modality) creates optimizer and metric configurations
that you pass to imregister to
perform intensity-based image registration. imregconfig returns optimizer and metric with
default settings to provide a basic registration configuration.
Syntax
[optimizer,metric]
= imregconfig(modality) example
Example
Create Optimizer and Metric Configurations to Register Images Captured on the Same DeviceLoad the images into the workspace and display them.fixed = imread('pout.tif');
moving = imrotate(fixed, 5, 'bilinear', 'crop');
imshowpair(fixed, moving,'Scaling','joint');
Create the optimizer and metric. The two images in this
example were captured on the same device, so we'll set the
modality to'monomodal'. [optimizer, metric] = imregconfig('monomodal')
optimizer =
registration.optimizer.RegularStepGradientDescent
Properties:
GradientMagnitudeTolerance: 1.000000e-04
MinimumStepLength: 1.000000e-05
MaximumStepLength: 6.250000e-02
MaximumIterations: 100
RelaxationFactor: 5.000000e-01
metric =
registration.metric.MeanSquares
This class has no properties.Pass optimizer and metric to imregister to
perform the registration.movingRegistered = imregister(moving,fixed,'rigid',optimizer, metric);View the registered imagesfigure
imshowpair(fixed, movingRegistered,'Scaling','joint');
Output / Return Value
Limitations
Alternatives / See Also
Reference