This paper presents a novel method for constructing a panorama from sequences of images with light changing. First
the two images
which will be composited
are decomposed into level sets. A morphological distance is defined here to match the level sets in the overlapping parts of the images. Each level set in a part is matched with the level sets in another part
so the difference in contrast is found and a transform function is obtained. The contrast of an image is adjusted to fit the contrast of the other image using the transform function and then the two images are stitched together by minimizing the intensity error between two images. Every two images are composited together using the same way and a global alignment is implemented to eliminate the visible gap or overlap between the first and last images in a sequence. This work has relaxed the constraint
which needs the same ambient light conditions for all images in the sequence
in traditional panorama mosaic and has a wide variety of applications. Finally
the performance of our method is demonstrated with an experiment.