Tune control point locations using cross-correlation
adjusts the position of moving control points, movingPointsAdjusted
= cpcorr(movingPoints
,fixedPoints
,moving
,fixed
)movingPoints
,
with respect to fixed control points, fixedPoints
, using
normalized cross-correlation between the moving image moving
and the fixed image fixed
. The cpcorr
function returns the adjusted moving control points in
movingPointsAdjusted
.
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 these conditions
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