UI はローカライズ済みです。スキルの紹介と説明文書は選択した言語へ AI が自動翻訳し、コード・コマンド・パス・専門用語は原文のままです。原作者の文書が優先されます。
スキルを探す
生産性・共同作業 · SKILL.md

image-pair-matching

image-pair-matching

Match two images end-to-end with LightGlue and a selected local-feature extractor.

Independent GitHub snapshot · Automated classification · Original documentation governs

スキルの説明

GitHub

name: image-pair-matching description: "Match two images end-to-end with LightGlue and a selected local-feature extractor." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

image-pair-matching

Use this sub-skill when you need to match two user-supplied images end-to-end with LightGlue, choose one public extractor head, and save the resulting visualization.

It distills the README minimal script and the demo notebook into a CLI-friendly flow:

  • load_image(...) to read and normalize RGB tensors,
  • device placement for the images, extractor, and matcher,
  • LightGlue(features=...) matching,
  • rbd(...) when you handle the dictionaries manually,
  • coordinate indexing from matches[..., 0] and matches[..., 1],
  • and viz2d saving for the final PNG.

Use match_pair(...) when you want the compact helper equivalent; keep the explicit flow here when you need to inspect the intermediate feature/result dicts.

Owned runtime assets

Routed elsewhere

Typical flow

  1. Load both images with load_image.
  2. Move the image tensors, extractor, and matcher to the same device.
  3. Build one supported pairing: superpoint, disk, aliked, sift, or doghardnet.
  4. Extract features, run LightGlue, and strip the batch axis with rbd when you are handling the dicts yourself.
  5. Index the keypoints with the match indices to recover coordinate arrays.
  6. Save the visualization with the bundled CLI or the viz2d helpers.

First-run note

SuperPoint, DISK, ALIKED, DoGHardNet, and the feature-specific LightGlue heads may download pretrained weights on first use. SIFT avoids neural extractor downloads, but the SIFT LightGlue head still loads its own weights the first time it runs.

For concrete recipes, start with references/workflows.md and the CLI in scripts/match_image_pair.py.

保存したスキル