Skip to contents

Detects keypoints (SIFT or SuperPoint), matches them with FLANN and Lowe's ratio test, and estimates a transform mapping moving onto fixed.

Usage

register_images(
  moving,
  fixed,
  detector = c("sift", "superpoint", "roma"),
  transformation = c("affine", "homography"),
  max_keypoints = 20000,
  model_path = NULL,
  device = "cpu"
)

Arguments

moving, fixed

(image1 and image 2).

detector

Keypoint detector: "sift", "superpoint" or "roma"“

transformation

Keypoint detector: "sift", "superpoint" or "roma"“

max_keypoints

the number of keypoints for SIFT

model_path

the path to the scripted model, if not provided, the default model will be used.

device

device

Value

An img_registration object.