Tune control point locations using cross-correlation
uses
normalized cross-correlation to adjust each pair of control points
specified in movingPointsAdjusted
= cpcorr(movingPoints
,fixedPoints
,moving
,fixed
)movingPoints
and fixedPoints
. moving
and fixed
are
images. cpcorr
returns the adjusted control points
in movingPointsAdjusted
.
Note
The moving
and fixed
images
must have the same scale for cpcorr
to be effective.
If cpcorr
cannot correlate a pair of control points, movingPointsAdjusted
contains
the same coordinates as movingPoints
for that
pair.
cpcorr
cannot adjust a point if any of the
following occur:
points are too near the edge of either image
regions of images around points contain Inf
or NaN
region around a point in moving image has zero standard deviation
regions of images around points are poorly correlated
cpcorr
only moves the position of a control
point by up to four pixels. Adjusted coordinates are accurate up to
one-tenth of a pixel. cpcorr
is designed to get
subpixel accuracy from the image content and coarse control point
selection.
cpselect
| fitgeotrans
| imwarp
| normxcorr2