Package 'img.matching'

Title: A deep learning powered image registration tool.
Description: Registers pairs of images by estimating the geometric transformation that aligns them. Correspondences can be found with classical keypoint matching based on SIFT (Lowe, 2004) implemented through 'OpenCV', with learned keypoints and descriptors from 'SuperPoint' (DeTone et al., 2018), or with the dense deep learning matcher 'RoMa' (Edstedt et al., 2024). The deep learning methods run on 'LibTorch' via the 'torch' package.
Authors: Dominik Sagebiel, Artür Manukyan
Maintainer: Dominik Sagebiel <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2026-12-03 21:56:15 UTC
Source: https://github.com/BiocFM/img.matching

Help Index


Register two images

Description

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.