File size: 807 Bytes
36c95ba
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Image Stitching
============================

Image stitching is the process of combining multiple images with overlapping fields of view to produce a segmented panorama. Here, we provide :py:class:`~kornia.contrib.image_stitching.ImageStitcher` to easily stitch a number of images.

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

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

.. code:: python

    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)

.. image:: https://raw.githubusercontent.com/kornia/data/main/panorama/out_panorama.jpg