Image Mosaic (OpenGL implementation)

Source: Internet
Author: User

Image Mosaic (Image Mosaics) is widely used, for example, Panorama Mosaic (several images are spliced into a 360-degree panorama ). A classicAlgorithmPeter J. Burt and Edward H. Adelson proposed in a multiresolution spline with Application to image mosaics. Based on the algorithm in this paper, I used OpenGL to implement a version.

 

The following describes the implementation process:

 

Suppose we have two pictures a and B (here the pictures A and B are the same, I am lazy ):

A

B

We splice these parts together:

We can see that the overlapping edges have obvious traces. Next we will use the multiresolution spline algorithm to eliminate these traces. The basic principle of multiresolution spline is to use the Gaussian operator to cascade and decompose images (pyramid decomposition), and use the reduce and expand operators to obtain GK (Gaussian) and lk (Laplacian) graphs ), and combine the two LK graphs on each layer on the given curve (in this example, the overlapping traces. Then, the merged PK image is enlarged to obtain the SK (that is, the final image of each layer is obtained by PK and SK + 1 ). The final image is S0. As shown in:

 

The final result is shown in:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.