help cpselect
cpselect - Control Point Selection tool
This MATLAB function starts the Control Point Selection tool that
enables you to select control points in two related images.
Syntax
cpselect(moving,fixed)
cpselect(moving,fixed,initialMovingPoints,initialFixedPoints)
cpselect(moving,fixed,cpstruct_in)
h = cpselect(___)
h = cpselect(___,'Wait',false)
[selectedMovingPoints,selectedFixedPoints] = cpselect(___,'Wait',true)
Input Arguments
moving - Input image to be aligned
grayscale image | truecolor image | binary image |
character vector | string
fixed - Reference image
grayscale image | truecolor image | binary image |
character vector | string
cpstruct_in - Preselected control points
structure
initialMovingPoints - Preselected control points on moving image
m-by-2 numeric array
initialFixedPoints - Preselected control points on fixed image
m-by-2 numeric array
Output Arguments
h - Control Point Selection tool
handle
selectedMovingPoints - Selected control points on moving image
p-by-2 numeric array
selectedFixedPoints - Selected control points on fixed image
p-by-2 numeric array
Examples
openExample('images/StartControlPointSelectionToolWithSaveImagesExample')
openExample('images/OpenControlPointSelectionToolWithPredefinedControlPointsExample')
See also cpcorr, fitgeotform2d, imwarp, cpstruct2pairs
Introduced in Image Processing Toolbox before R2006a
Documentation for cpselect
doc cpselect
help imregister
imregister - Intensity-based image registration
This MATLAB function transforms the 2-D or 3-D grayscale image, moving,
so that it is registered with the reference image, fixed.
Syntax
moving_reg = imregister(moving,fixed,transformType,optimizer,metric)
[moving_reg,R_reg] = imregister(moving,Rmoving,fixed,Rfixed,transformType,optimizer,metric)
___ = imregister(___,Name,Value)
Input Arguments
moving - Image to be registered
numeric matrix | 3-D numeric array
Rmoving - Spatial referencing information associated with image to be
registered
imref2d object | imref3d object
fixed - Reference image
numeric matrix | 3-D numeric array
Rfixed - Spatial referencing information associated with reference
image
imref2d object | imref3d object
transformType - Geometric transformation to be applied to image to be
registered
"translation" | "rigid" | "similarity" | "affine"
optimizer - Method for optimizing similarity metric
RegularStepGradientDescent or OnePlusOneEvolutionary optimizer object
metric - Image similarity metric to be optimized during registration
MeanSquares or MattesMutualInformation metric object
Name-Value Arguments
DisplayOptimization - Verbose optimization flag
false (default) | true
InitialTransformation - Initial geometric transformation
affinetform2d object | affinetform3d object
PyramidLevels - Number of pyramid levels used during registration
process
3 (default) | positive integer
Output Arguments
moving_reg - Registered image
numeric matrix | 3-D numeric array
R_reg - Spatial referencing information associated with registered
image
imref2d object | imref3d object
Examples
openExample('images/RegisterMultimodalMRIImagesWithOptimizerExample')
See also Registration Estimator, imregconfig, imregcorr, imregtform,
imwarp, imshowpair, imfuse, imregicp
Introduced in Image Processing Toolbox in R2012a
Documentation for imregister
doc imregister
