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: