cpcorr
Tune control point locations using cross-correlation
Description
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
.
Examples
Input Arguments
Output Arguments
Tips
The
moving
andfixed
images must have the same scale forcpcorr
to be effective.If
cpcorr
cannot correlate a pair of control points,movingPointsAdjusted
contains the same coordinates asmovingPoints
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
orNaN
region around a point in moving image has zero standard deviation
regions of images around points are poorly correlated
Algorithms
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.