Image Matching#

Image matching is a process of finding pixel and region correspondences between two images of the same scene. Such correspondences are useful for 3D reconstruction of the scene and relative camera pose estimation. It is also known as “Wide baseline stereo” and you can read more about it at Wide Baseline Stereo Blog

We provide many modules and functions for the image matching: from building blocks like local feature detectors, descriptors, descriptor matching, geometric model estimation

However we recommend to start with high-level API, such as LoFTR you can use to find correspondence between two images.

from kornia.feature import LoFTR

matcher = LoFTR(pretrained="outdoor")
input = {"image0": img1, "image1": img2}
correspondences_dict = matcher(input)

You also can go through or full tutorial using Colab found here.