In this project, our goal is to perform image blending using pyramid methods in image processing. We aim to achieve a smooth image blend, employing techniques such as Laplacian and Gaussian pyramids.
The history of image blending is deeply rooted in the evolution of image processing and computer graphics. It has undergone significant transformations over time:
In the nascent stages of computer graphics, image blending primarily focused on seamlessly integrating multiple images or layers to create a composite image. Techniques like alpha blending were fundamental in this era.
As photography advanced, techniques emerged to merge or overlay multiple photographs for unique compositions. Traditional darkroom processes allowed photographers to blend images using multiple exposure techniques.
The advent of digital image editing software, notably Adobe Photoshop and similar tools, revolutionized image blending. These tools introduced sophisticated blending modes, masks, and layering capabilities, enabling precise and seamless image combinations.
In computer vision and image processing, blending became crucial for tasks like panoramic image stitching, enabling the creation of wider views through seamless combination of multiple images. Additionally, it found applications in medical imaging for merging different modalities or images for diagnosis and analysis.
Recent advancements in image processing led to the development of complex blending algorithms leveraging concepts like Laplacian and Gaussian pyramids. These algorithms aim to achieve smoother and more natural blending by considering local details and minimizing visible transitions between images.
With the rise of AI and machine learning, image blending techniques have seen enhancements through neural network-based approaches, enabling more intelligent and context-aware blending.
Image blending has evolved significantly from its early roots, becoming an integral part of various fields, from photography and graphic design to computer vision and medical imaging, continually advancing through technological innovations and research breakthroughs.
The primary challenge lies in creating a seamlessly blended image after applying the blending process. We'll utilize the Image Pyramid method to address this issue, breaking it down into four main steps:
-
Building Laplacian Pyramids for Each Image
- Utilizing functions like
gaussianPyramid
andLaplacianPyramid
. - The
LaplacianPyramid
function constructs the Laplacian pyramid from a set of Gaussian pyramid levels, involving the usual process of reconstructing the Laplacian pyramid by upsampling Gaussian pyramid levels and subtracting from the previous level.
- Utilizing functions like
-
Building a Gaussian Pyramid for Each Region Mask
- Using the
gaussianPyramid
function to generate a Gaussian pyramid of masks. - Creating a mask region with white for specific areas and black for others by combining our image and the original image.
- Using the
-
Blending Each Level of the Pyramid Using Region Masks
- Employing a given formula for this step.
-
Collapsing the Pyramid to Obtain the Final Blended Image
- Displaying the results for different pyramid levels:
[You can access other resulter under result file]
README.txt
: Details about the assignment and a Google Drive link (without login) containing all images (input, mask, blended).code/
: Directory with all code files (.py
).report.pdf
: A PDF report summarizing the project. Download My PDF File
- "Pyramid methods in image processing, E. H. Adelson, C. H. Anderson, J. R. Bergen, P. J. Burt, J. M. Ogden,1984"