Image Stitching
Image Stitching
Abstract — In this paper, we describe various Image create the high resolution photo-mosaics used to produce
stitching techniques used to combine multiple images today’s digital maps and satellite photos. They also come
together to make a wide angle picture called Panorama. bundled with most digital cameras currently being sold, and
Algorithms for stitching and aligning have many can be used to create beautiful ultra wide-angle panoramas.
applications in computer vision like texture synthesis, We describe various Image Stitching phases in section 1.In
object recognition, medical imaging. Images of any object section 2,we give details of Image Acquisition phase. Image
or place are acquired using 360. rotating camera and the remapping is an essential process of Image Stitching described
overlapped portion of images should be aligned properly. in section3. Finally aligned images are blended together to
Image stitching requires identical exposures to produce avoid seams in the stitched image this procedure is known as
seamless results. It is also known as mosaicing. Stitching Image Blending specified in Section 4.
can be done into three stages Acquisition, Remapping,
A. Different kinds of Image Stitching
Blending. We have described different techniques for all
the stages. Image acquisition can be done using rotating There are different kinds of Stitching,
camera, translating camera and hand held camera. Image • Mosaic - stitch multiple rows of pictures that were
Remapping involves Alignment, conversion of camera taken without rotating the camera around a single
image to Sphere, Selection of final projection, Exposure point, but with the camera kept perpendicular with
setting. Image remapping is also called Warping. The final the subject.
warped images should blend perfectly so the visible seams • Panorama (single-row) - stitch a single row of
between the images can be removed. Image blending pictures (created by rotating the camera around a
techniques like Average Blending, Alpha Blending, single point in a flat plane, which is normally parallel
Feathering, Pyramid blending used to remove Exposure with the horizon).
difference, Blurring, Ghosting. Finally unwanted
• Panorama (multi-row) - stitch multiple rows of
information can be cropped using various cropping
pictures (created by rotating the camera around a
techniques like graph cuts, gradient blending etc.
single point in a flat plane but tilting or pitching the
Keywords-component: Image Stitching, Image Blending, camera up and/or down so that for each row of
Image Warping. pictures the lens is not necessarily parallel with the
plane of rotation).
• Panorama (pano-camera) - just stitch together the
ends of panoramic picture created with a panoramic
I. INTRODUCTION camera.
Image stitching or photo stitching is the process of • Spherical panorama - stitch any number of pictures in
combining multiple photographic images with overlapping such a way as to create a spherical panorama, the
fields of view to produce a segmented panorama or high- important distinction between this and single or
resolution image. Commonly performed through the use of multi-row panoramas is that the "poles" (i.e the very
computer software, most approaches to image stitching require top and bottom of the image) must be stitched also so
nearly exact overlaps between images and identical exposures that the user can look straight up and down and see a
to produce seamless results. It is also known as mosaicing. smoothly blended image.
"Stitching" refers to the technique of using a computer to 1) Stages of the Image Stitching Process
merge images together to create a large image, preferably a) Image Acquisition:
without it being at all noticeable that the generated image has This stage of Image stitching is to do calibration of Images. It
been created by computer. Algorithms for aligning images and requires selection of the position and acquisition of images. In
stitching them into seamless photo-mosaics are among the this step, a decision needs to be made on the type of resultant
oldest and most widely used in computer vision. Frame-rate panoramic images. According to the required panoramic
image alignment is used in every camcorder that has an images, different image acquisition methods are used to
“image stabilization” feature. Image stitching algorithms acquire the series of images.
NCAICN-2013, PRMITR,Badnera
324
International Journal Of Computer Science And Applications Vol. 6, No.2, Apr 2013 ISSN: 0974-1011 (Open Access)
NCAICN-2013, PRMITR,Badnera
325
International Journal Of Computer Science And Applications Vol. 6, No.2, Apr 2013 ISSN: 0974-1011 (Open Access)
NCAICN-2013, PRMITR,Badnera
326
International Journal Of Computer Science And Applications Vol. 6, No.2, Apr 2013 ISSN: 0974-1011 (Open Access)
NCAICN-2013, PRMITR,Badnera
327
International Journal Of Computer Science And Applications Vol. 6, No.2, Apr 2013 ISSN: 0974-1011 (Open Access)
To recognize panoramas, Brown and Lowe (2003) first find neighbor is found for each feature in the first image, using the
all pair wise image overlaps using a feature-based method and indexing structure to rapidly find candidates, and then
then find connected components in the overlap graph to comparing feature descriptors to find the best match.
“recognize” individual panoramas (Figure 8). The feature- RANSAC is then used to find a set of inlier matches, using a
based matching stage first extracts SIFT feature locations and pairs of matches to hypothesize a similarity motion model that
feature descriptors (Lowe 2004) from all the input images and is then used to count the number of inliers.
then places these in an indexing structure, as described in §4.2.
For each image pair under consideration, the nearest matching
sphere has been imaged. If the case of full 360◦ panoramas,
C.Selection of Projection:
a better choice might be to choose the middle image from
The first choice to be made is how to represent the final the sequence of inputs, or sometimes the first image,
image. If only a few images are stitched together, a natural assuming this contains the object of greatest interest. In all
approach is to select one of the images as the reference and of these cases, having the user control the final view is
to then warp all of the other images into the reference often highly desirable.
coordinate system. The resulting composite is sometimes
called a flat panorama, since the projection onto the final E.Exposure Setting:
surface is still a perspective projection. For larger fields of
Input images need not have the same exposure, or white
view, however, we cannot maintain a flat representation
balance. Together with vignetting (images are darker in the
without excessively stretching pixels near the border of the
corners than in the middle) the required corrections can be
image. (In practice, flat panoramas start to look severely
derived from images with a suitably large overlap area.
distorted once the field of view exceeds 90• or so.) The
usual choice for compositing larger panoramas is to use a
cylindrical (Szeliski 1994, Chen 1995) or spherical IV. IMAGE BLENDING
(Szeliski and Shum 1997) projection. In fact, any surface Once we have registered all of the input images with
used for environment mapping in computer graphics can be respect to each other, we need to decide how to produce the
used, including a cube map that represents the full viewing final stitched (mosaic) image. This involves selecting a
sphere. final compositing surface (flat, cylindrical, spherical, etc.)
and view (reference image). It also involves selecting
which pixels contribute to the final composite and how to
optimally blend these pixels to minimize visible seams,
blur, and ghosting. Once the source pixels have been
mapped onto the final composite surface, we must still
decide how to blend them in order to create an attractive
looking panorama. If all of the images are in perfect
registration and identically exposed, this is an easy problem
(any pixel or combination will do). However, for real
images, visible seams (due to exposure differences),
Fig. 8 Projection of sphere image to screen blurring (due to mis-registration), or ghosting (due to
moving objects) can occur. Creating clean, pleasing
looking panoramas involves both deciding which pixels to
D.Selection of View use and how to weight or blend them. In this section we
describe different image blending techniques.
Once we have chosen the output parameterization, we
still need to determine which part of the scene will be
A. Alpha blending:
centered in the final view. As mentioned above, for a flat
composite, we can choose one of the images as a reference. 1) Alpha Channel:
Often, a reasonable choice is the one that is geometrically The alpha channel is normally used as an opacity
most central. For example, for rotational panoramas channel. If a pixel has a value of 0% in its alpha channel, it
represented as a collection of 3D rotation matrices, we can is fully transparent (and, thus, invisible), whereas a value of
choose the image whose z-axis is closest to the average z- 100% in the alpha channel gives a fully opaque pixel
axis (assuming a reasonable field of view). Alternatively, (traditional digital images). Values between 0% and 100%
we can use the average z-axis (or quaternion, but this is make it possible for pixels to show through a background
trickier) to define the reference rotation matrix. like a glass, an effect not possible with simple binary
For larger (e.g., cylindrical or spherical) panoramas, (transparent or opaque) transparency. It allows easy image
we can still use the same heuristic if a subset of the viewing compositing. Alpha channel values can be expressed as a
NCAICN-2013, PRMITR,Badnera
328
International Journal Of Computer Science And Applications Vol. 6, No.2, Apr 2013 ISSN: 0974-1011 (Open Access)
percentage, integer, or real number between 0 and 1 like Figure 9c,9d, while that obtained with the spline is shown
RGB parameters. In graphics, a portion of each pixel's data in Figure 14e.
that is reserved for transparency information. 32-bit
graphics systems contain four channels -- three 8-bit
channels for red, green, and blue RGB and one 8-bit alpha
channel. The alpha channel is really a mask -- it specifies
how the pixel's colors should be merged with another pixel
when the two are overlaid, one on top of the other.
(a) ( b)
B. Feathering:
A better approach to averaging is to weight pixels near
the center of the image more heavily and to down-weight
pixels near the edges. When an image has some cutout
regions, down-weighting pixels near the edges of both (c) (d) (e)
cutouts and edges is preferable. This can be done by Fig9.Pyramidal Blending
computing a distance map or grassfire transform. Weighted V. Image Stiching Application:
averaging with a distance map is often called feathering
and does a reasonable job of blending over exposure Image Stiching has been proposed in the literature as a
differences however, blurring and ghosting can still be means for different applications. The main applications ce
problems.
C. Pyramidal blending: 1. texture synthesis,
Once the seams have been placed and unwanted objects 2. object recognition
removed, we still need to blend the images to compensate 3. medical imaging.
for exposure differences and other mis-alignments. An 4. To produce digital maps
attractive solution to this problem was developed by Burt 5. To produce satellite photos
and Adelson Instead of using a single transition width, a
frequency adaptive width is used by creating a band-pass
(Laplacian) pyramid and making the transition widths a VI Conclusion:
function of the pyramid level. First, each warped image is Image stiching plays a vital role in 21st century which is
converted into a band-pass (Laplacian) pyramid. Next, the emerging with various research programs & advances for
masks associated with each source image are converted into more sophisticated & enjoyable life. Image enhancement
a lowpass (Gaussian) pyramid and used to perform a per- has importance in entertainment. It evolves the
level feathered blend of the band-pass images. Finally, the enhancement of photographs, in medical field. image
composite image is reconstructed by interpolating and processing is used to produce digital maps & satellite
summing all of the pyramid levels (band-pass images). photos , which yields more accurate results. This is a
1) The Laplacian Pyramid: rapidly growing field & has a very wide scope.
REFERENCES
The Gaussian pyramid is a set of low-pass filtered
images. in order to obtain the band-pass images required [1] P.J.Burt, E.H. Andelson, “A multiresolution spline with application
to image mosaics”, ACM transactions on Graphics 2 (4) (1983).
for the multiresolution spline we subtract each level of the
pyramid from the next lowest level. Because these arrays [2] M. Brown and D. G. Lowe, “Recognizing Panorama”,-2003
differ in sample density, it is necessary to interpolate new [3] 3. Richard Szeliski, “Image Alignment and Stitching”-Microsoft
samples between those of a given array before it is Reasearch lab 2005.
subtracted from the next lowest array. Interpolation can be [4] Jiaya jia, Chi-keung Tang, “Image Stitching using Structure
achieved by reversing the REDUCE process. We shall call Deformation”-IEEE transaction on pattern analysis and machine
intelligence, vol 30-2008
this an E XPAND operation. Let G l,k be the image obtained
by expanding Gl, k times. Then, [ 5 ] E. H. Adelson, C. H. Anderson, J. R. Bergen “Pyramid methods in
image processing”-1984
[6] J.-Y. Guillemaut, J. Kilner, J. Starck, A. Hilton, “Dynamic
Feathering: Minimising Blending Artefacts i
An example shows the result of splining two quite [7] n View-Dependent Rendering” - IEEE transaction on Image
different images, an apple and an orange (Figures 9a and processing 2008..
9b). The mosaic obtained without a spline is given in [8] Jiaya Jia, Chi-Keung Tang, “Eliminating Structure and Intensity
Misalignment in Image Stitching” Research Grant Council of Hong
Kong Special Administration Region, China (AOE/E-1999).
NCAICN-2013, PRMITR,Badnera
329
International Journal Of Computer Science And Applications Vol. 6, No.2, Apr 2013 ISSN: 0974-1011 (Open Access)
[9] H.-Y. Shum and R. Szeliski. “Construction of panoramic mosaics [10] Xia Wan and C.-C. Jay Kuo” A New Approach to Image Retrieval
with global and local alignment”. International Journal of Computer With Hierarchical Color Clustering” ieee transactions on circuits and
Vision, 36(2):101–130, February 2000. Erratum published July systems for video technology, september 1998
2002,48(2):151-152.
NCAICN-2013, PRMITR,Badnera
330