Calculates the rotation shift between two sequential images using either cross-correlation or phase correlation methods.
Usage
estimate_rotation_shift(
img1,
img2,
cor.type = "phase",
fixed.depth.pixel = c(1000, 4000),
fixed.width = NULL,
select.layer = NULL
)
Arguments
- img1
Reference image (3-channel RGB)
- img2
Subsequent image to compare (3-channel RGB)
- cor.type
Correlation type: "ccf" (cross) or "phase" (frequency domain)
- fixed.depth.pixel
Depth range to analyze c(start, end)
- fixed.width
Width of analysis region in pixels
- select.layer
Integer. Specifies which layer to use if the input is a multi-band image. Default is `NULL`.