Image Stitching

Image stitching is the process of combining multiple images with overlapping fields of view to produce a segmented panorama. Here, we provide ImageStitcher to easily stitch a number of images.

https://raw.githubusercontent.com/kornia/data/main/matching/stitch_before.png

Learn more: https://paperswithcode.com/task/image-stitching/

from kornia.contrib import ImageStitcher

matcher = KF.LoFTR(pretrained='outdoor')
IS = ImageStitcher(matcher, estimator='ransac').cuda()
# NOTE: it would require a large CPU memory if many images.
with torch.no_grad():
    out = IS(*imgs)
https://raw.githubusercontent.com/kornia/data/main/panorama/out_panorama.jpg

Explore with your data: https://colab.research.google.com/github/kornia/tutorials/blob/master/source/image_stitching.ipynb

Interactive Demo

Visit the demo on Hugging Face Spaces.