An Algorithm for Seamless Image Stitching and Its Application

Similar documents
Panoramic Image Stitching

Fast Image Stitching and Editing for Panorama Painting on Mobile Phones

Targil 10 : Why Mosaic? Why is this a challenge? Exposure differences Scene illumination Miss-registration Moving objects

Fast Image Stitching and Editing for Panorama Painting on Mobile Phones

Hierarchical Matching Techiques for Automatic Image Mosaicing

Today s lecture. Image Alignment and Stitching. Readings. Motion models

Fast Image Labeling for Creating High-Resolution Panoramic Images on Mobile Devices

FAST REGISTRATION OF TERRESTRIAL LIDAR POINT CLOUD AND SEQUENCE IMAGES

Announcements. Mosaics. How to do it? Image Mosaics

Image-Based Rendering. Johns Hopkins Department of Computer Science Course : Rendering Techniques, Professor: Jonathan Cohen

Gradient Domain Image Blending and Implementation on Mobile Devices

A Review of Image- based Rendering Techniques Nisha 1, Vijaya Goel 2 1 Department of computer science, University of Delhi, Delhi, India

Adaptive Zoom Distance Measuring System of Camera Based on the Ranging of Binocular Vision

Midterm Examination CS 534: Computational Photography

Homographies and RANSAC

Image-based Modeling and Rendering: 8. Image Transformation and Panorama

Compositing a bird's eye view mosaic

URBAN STRUCTURE ESTIMATION USING PARALLEL AND ORTHOGONAL LINES

Augmenting Reality, Naturally:

Photographic stitching with optimized object and color matching based on image derivatives

Mosaics. Today s Readings

SURF applied in Panorama Image Stitching

Announcements. Mosaics. Image Mosaics. How to do it? Basic Procedure Take a sequence of images from the same position =

Image Based Rendering. D.A. Forsyth, with slides from John Hart

Image-Based Rendering. Johns Hopkins Department of Computer Science Course : Rendering Techniques, Professor: Jonathan Cohen

Object Recognition with Invariant Features

But, vision technology falls short. and so does graphics. Image Based Rendering. Ray. Constant radiance. time is fixed. 3D position 2D direction

CS6670: Computer Vision

Image warping and stitching

Image warping and stitching

Local Feature Detectors

Chapter 3 Image Registration. Chapter 3 Image Registration

1-2 Feature-Based Image Mosaicing

3D Reconstruction of a Hopkins Landmark

Perception-based Seam-cutting for Image Stitching

Face Cyclographs for Recognition

FLY THROUGH VIEW VIDEO GENERATION OF SOCCER SCENE

WATERMARKING FOR LIGHT FIELD RENDERING 1

BSB663 Image Processing Pinar Duygulu. Slides are adapted from Selim Aksoy

Image-Based Modeling and Rendering

Image Stitching using Harris Feature Detection

Scale Invariant Feature Transform

Image warping and stitching

Fundamental Matrices from Moving Objects Using Line Motion Barcodes

Image-Based Rendering. Image-Based Rendering

Visualization 2D-to-3D Photo Rendering for 3D Displays

Computational Optical Imaging - Optique Numerique. -- Multiple View Geometry and Stereo --

Stitching and Blending

An Image Based 3D Reconstruction System for Large Indoor Scenes

Use of Shape Deformation to Seamlessly Stitch Historical Document Images

Video Mosaics for Virtual Environments, R. Szeliski. Review by: Christopher Rasmussen

Prof. Feng Liu. Spring /26/2017

PANORAMIC IMAGE MATCHING BY COMBINING HARRIS WITH SIFT DESCRIPTOR

Improvement of SURF Feature Image Registration Algorithm Based on Cluster Analysis

CSE 527: Introduction to Computer Vision

Image Stitching. Slides from Rick Szeliski, Steve Seitz, Derek Hoiem, Ira Kemelmacher, Ali Farhadi

Topics to be Covered in the Rest of the Semester. CSci 4968 and 6270 Computational Vision Lecture 15 Overview of Remainder of the Semester

Image stitching. Digital Visual Effects Yung-Yu Chuang. with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac

EE795: Computer Vision and Intelligent Systems

Acquisition of high resolution geo objects Using image mosaicking techniques

Projective Texture Mapping with Full Panorama

Pose Normalization for Robust Face Recognition Based on Statistical Affine Transformation

Morphable 3D-Mosaics: a Hybrid Framework for Photorealistic Walkthroughs of Large Natural Environments

Feature Matching and RANSAC

SUMMARY: DISTINCTIVE IMAGE FEATURES FROM SCALE- INVARIANT KEYPOINTS

Liver Image Mosaicing System Based on Scale Invariant Feature Transform and Point Set Matching Method

Image stitching. Announcements. Outline. Image stitching

arxiv: v1 [cs.cv] 1 Jan 2019

Building a Panorama. Matching features. Matching with Features. How do we build a panorama? Computational Photography, 6.882

Viewpoint Invariant Features from Single Images Using 3D Geometry

Real-time Video Surveillance for Large Scenes

A Bayesian Framework for Panoramic Imaging of Complex Scenes

E27 Computer Vision - Final Project: Creating Panoramas David Nahmias, Dan Spagnolo, Vincent Stigliani Professor Zucker Due 5/10/13

arxiv: v1 [cs.cv] 28 Sep 2018

Stereo Image Rectification for Simple Panoramic Image Generation

Multiview Depth-Image Compression Using an Extended H.264 Encoder Morvan, Y.; Farin, D.S.; de With, P.H.N.

Implementation and Comparison of Feature Detection Methods in Image Mosaicing

Stereo Vision. MAN-522 Computer Vision

Agenda. Rotations. Camera models. Camera calibration. Homographies

CSE 252B: Computer Vision II

Dense 3D Reconstruction. Christiano Gava

Scale Invariant Feature Transform

IMAGE stitching is a common practice in the generation of

Image-Based Deformation of Objects in Real Scenes

N-Views (1) Homographies and Projection

Panoramic Image Mosaicing

Parallax-tolerant Image Stitching

Photo Tourism: Exploring Photo Collections in 3D

EE368 Project Report CD Cover Recognition Using Modified SIFT Algorithm

Augmented Reality VU. Computer Vision 3D Registration (2) Prof. Vincent Lepetit

Image Warping and Mosacing

Local features and image matching. Prof. Xin Yang HUST

Fast Image Matching Using Multi-level Texture Descriptor

Invariant Features from Interest Point Groups

Outline. Introduction System Overview Camera Calibration Marker Tracking Pose Estimation of Markers Conclusion. Media IC & System Lab Po-Chen Wu 2

Image stitching. Digital Visual Effects Yung-Yu Chuang. with slides by Richard Szeliski, Steve Seitz, Matthew Brown and Vaclav Hlavac

Pattern Feature Detection for Camera Calibration Using Circular Sample

A Survey of Light Source Detection Methods

Broad field that includes low-level operations as well as complex high-level algorithms

Digitization of 3D Objects for Virtual Museum

Transcription:

An Algorithm for Seamless Image Stitching and Its Application Jing Xing, Zhenjiang Miao, and Jing Chen Institute of Information Science, Beijing JiaoTong University, Beijing 100044, P.R. China Abstract. Panoramic image stitching used to create virtual environments for many applications is crucial for IBR. In this paper, we introduce a four-step algorithm based on SIFT features which makes some improvements on large exposure difference, large scene motion or other misregistrations when stitching panoramic images. We introduce a new method that is to add the adjacent images according to a weight function to eliminate the seam in the transition region. As a result, we apply the panoramic image to a computer game to enhance the reality of the game environment. Through lots of analyses and experiments we find that our method is simple and effective. Because this method is not sensitive to ordering, orientation, scaling and illumination, its stitching precision is much higher than many other methods. Keywords: Homography, game environment, SIFT features, panorama. 1 Introduction Because of the limitation of geometry-based Rendering, Image-based Rendering (IBR) is becoming more and more important. Panoramic image stitching is to merge a sequence of images with limited overlapping area into one blended picture. As a result, the panoramic images are applied to construct virtual environment which can get higher reality. Satisfying image stitching results are crucial, which means a natural transition from one image to another, both in structure and intensity within and possibly beyond the overlapping region. There are many algorithms to stitching panoramic images. Feature-based methods begin by establishing correspondences between points, lines or other geometrical entities. The approach based on area [2] calculates the difference of pixel values in the searching region between two adjacent images. This method is easy to implement but the results are related to the illumination and orientation of the input images. There is another approach based on feature seam [2] that is to search a seam where adjacent images can be stitched. In this method, better results are gotten, but the results are not reliable. In this paper, the algorithm based on SIFT features and a new approach to eliminate the seam between adjacent images are introduced. L. Ma, R. Nakatsu, and M. Rauterberg (Eds.): ICEC 2007, LNCS 4740, pp. 85 90, 2007. IFIP International Federation for Information Processing 2007

86 J. Xing, Z. Miao, andj. Chen 2 Algorithm Details of Images Stitching It s a key to match features in the images stitching. Among the local descriptors compared, SIFT features generally perform the best [1] [4]. Our algorithm is divided four steps and the details are shown as follow. 2.1 Feature Matching Because larger motions, or matching collections of images where the geometric relationship between them is unknown, it is a key and difficulty to attract features of the images. In our experiment, we use SIFT features [4] and get good results. SIFT features provide a set of features of an object that are not affected by many of the complications experienced in other methods, such as object scaling and rotation. To aid the extraction of these features the SIFT algorithm applies a four-stage filtering approach [5]: (1). Scale-Space Extremum Detection; (2). Key point Localization; (3). Orientation Assignment; (4). Key point Descriptor. 2.2 Homography Calculating As the above described, given two images taken from the same viewpoint but in different directions, the relationship of the two images can be described by a planar projective motion model which is Homography metrics denoted H. H is a matrix of 3 3, and we need four pairs matching points at least to calculate H. This projective transformation warps an image into another one using x i ~H x i. To calculate H correctly is crucial in the images matching. In our experiment, we use the method of direct linearity transformation (DLT) [3] and at least four pairs interest points from image 2 to image 1 are needed. 2.3 Image Stitching The third step is to stitch the images. After calculating H, image 2 is transformed into the same coordinate system as image 1 according the formulas introduces in section 2.2 [5]. Lots of information of image can be lost due to the transformation. In this experiment, we record the coordinates of the image 2 after transformation, and then stitch the two images directly. Described in formula is shown as follow: x 1 y 1 x3 y 3 4 y 4 x H = x 1 y 1 x 3 y 3 x 4 (1) y 4 Where x1 y1 x3 x4 is a matrix of four corners coordinates of image 2 (shown y 3 y4 clockwise), and then we can get the four corners coordinates of image 2 after transformation x1 y1 x 3 y 3 x 4. y4

An Algorithm for Seamless Image Stitching and Its Application 87 According to the coordinates, we can stitch adjacent images exactly. Using this method, complex algorithm and unnecessary calculation are avoided. The illumination of the two original images is different, but the stitching result is not affected because of the SIFT features insensitivities to illumination, oriental and scale. 2.4 Eliminating the Seam of the Image After Stitching Although images can be stitched together exactly, a seam is still obvious in the transition region. There are many approaches to image stitching in the literature. Optimal seam algorithms [6] search for a curve in the overlap region on which the differences between image 1 and image 2 are minimal. Then, each image is copied to the corresponding side of the seam. However, the seam is visible when there is no such curve. Another approach is to minimize seam artifacts by smoothing the transition between the images. A related approach was suggested in [7], where a smooth function was added to the input images to force a consistency between the images in the seam curve. In case there are misalignments between the images [8], these methods leave artifacts in the mosaic such as double edges. Our method is different from these methods: first, the camera parameters are not needed; second, our method can detect the seam between the two images correctly. Camera calibration is a complex work in big environment and the features are not easy to get. Our method avoids this problem. Because the algorithm based on SIFT features is adopted in our experiment, image 1 and image 2 are in the same coordinates system after image 2 multiplying H, where H is the homography of the two images. In the same way, the transition region can be located easily. In order to make the image look no visible seam, process the transition region naturally stitch is important. Our method mainly processes the transition region. According this matrix x1 x 3 x4 which is the coordinate matrix of image 2 y1 y 3 y4 after transformation, the transition region is computed correctly, shown in figure 1: Fig. 1. The image after pasting two images (transition region in the red rectangle) Because the transition region is the mix part of Image 1 and Image 2, we can assume a weight function and make the image after stitching smoothing. The image after stitching is noted as I. The left part of transition region is the image 1 and the right part is Image 2. Let the two images multiple a weight function w (x) to eliminate the seam

88 J. Xing, Z. Miao, and J. Chen in transition region, and the transition region and weight function can be denoted as following formulas: S = (1 w ( x )) * I 1( x, y ) + w ( x ) * I 2 ( x, y ) w ( x ) = sin( x * π /( 2 * d )) where 0 w ( x ) 1 0 x d (2) d is the width of transition region and it can be computed according to the figure 1. 3 Experiment Results and Application In this experiment, the SIFT features are extracted from a pair of adjacent images. The features are matched using k-d tree, and the result is shown in figure 2. In figure 2, two original images are given which have overlapping region. And then, we detect the SIFT features of the two images and match them. After detecting the features and calculating the homography of two adjacent images, we stitch the images by recording coordinates of the image after transformation. Another result is also given that is obtained by the method based on area. Form these results compared, higher accuracy is gotten in our method. There is a visible seam in the transition area after stitching. The seam in transition region is eliminated by using our method and the result is shown in figure 3. Fig. 2. Original images (the left two images) and SIFT feature matches extracted from a pair of images (right) Fig. 3. the image after stitching using the method based on area [2] (the matching error is marked with red rectangle) and using the method based on SIFT features with obvious seam (middle) stitching result after smoothing the transition (right) Some experiment results based on SIFT features are also shown as follow. Fig. 4. Original images (left two images) and the image after stitching using our method (middle) and using software (right)

An Algorithm for Seamless Image Stitching and Its Application 89 The original images with obvious illumination difference are shown in the left two images of figure 4. There are some commercial softwares to stitch panoramic images now in the market, so we also use one of them that can get good result to stitch the images to compare with ours, which is shown in the right image of figure 4. From these results we can see a higher graphics resolution is obtained by using our method than by software. The main purpose of panorama is to construct virtual environment. We apply the panorama to a computer game we are now exploiting about tank war and get higher game environment reality. In figure 5, the two tanks are modeled by java3d and the environment is constructed by panorama that is stitched by a series of images with overlapping region. Fig. 5. The left two images are the original images and the middle is the panorama and the right is the game environment using panorama 4 Conclusions Some experiment results have been presented using SIFT feature-based algorithm in this paper. From these results, we can see that using SIFT features to transform images allows us to stitch them in an accurate way. In addition, because we stitch the images by using the coordinates of the image after transformation instead of interpolation, unnecessary calculation is avoided and the transition region is detected easily. Besides, the approach that is to add adjacent images by weight function is simple and effective. Acknowledgments This work is supported by National 973 Key Research Program 2006CB303105, National 973 Key Research Program 2004CB318110 and University Key Research Fund 2004SZ002. References 1. Shum, H.Y., Szelishi, R.: Panoramic Image Mosaics. Technical Report, Microsoft Research (1998) 2. Kang, G.: Virtual Environment Touring based on image, master thesis, Nanjing Institute of Technology (2004) 3. Hartley, R., Zisserman, A.: Multiple View Geometry in Computer Vision. AnHui University Press (2002) 4. Lowe, D.: Distinctive image features from scale-invariant keypoints. Int. Journal of Computer Vision 60(2), 91 110 (2004)

90 J. Xing, Z. Miao, andj. Chen 5. Zhao, H.: Matching Technology based on SIFT Features, Shan Dong University, Institute of Information Science and Engineering (2006) 6. Efros, A., Freeman, W.: Image quilting for texture synthesis and transfer. In: Proc. SIGGRAPH, pp. 341 346 (August 2001) 7. Peleg, S.: Elimination of seams from photomosaics. Computer Graph Image Process. 16(1), 90 94 (1981) 8. Uyttendaele, M., Eden, A.: Eliminating ghosting and exposure artifacts in image mosaics. In: Proc. Conf. Computer Vision and Pattern Recognition, pp. II: 509 II: 516 (2001)