This module provides the elementary image splining (seamless merging) using the burt-adelson multiresolution splines introduced in A multiresolution spline with application to image mosaics, Burt, P.J. and Adelson, E.H., ACM Transactions on Graphics,1983.
This function merges two images based on given mask, the first image dominates on areas where the mask
is 1 and the second where the mask is 0. The merging should be relatively seamless and is controlled by
levels parameter, which adjusts the accuracy. Usually, decent results can be obtained with 4 pyramid
Note that the mask should contain a tiny blurred region between images for optimal result.