Digital deformation model for fisheye image rectification

Similar documents
ON THE CREATION OF PANORAMIC IMAGES FROM IMAGE SEQUENCES

Panorama Photogrammetry for Architectural Applications

Panoramic Mosaicing with a 180 Field of View Lens

A Geometric Correction Method of Plane Image Based on OpenCV

Computer Vision Slides curtesy of Professor Gregory Dudek

FOCAL LENGTH CHANGE COMPENSATION FOR MONOCULAR SLAM

Single Camera Catadioptric Stereo System

IMAGE FORMATION. Light source properties. Sensor characteristics Surface. Surface reflectance properties. Optics

Method for out-of-focus camera calibration

APPLICATION AND ACCURACY POTENTIAL OF A STRICT GEOMETRIC MODEL FOR ROTATING LINE CAMERAS

Catadioptric Stereo For Robot Localization

DEVELOPMENT AND APPLICATION OF AN EXTENDED GEOMETRIC MODEL FOR HIGH RESOLUTION PANORAMIC CAMERAS

EXPERIMENT ON PARAMETER SELECTION OF IMAGE DISTORTION MODEL

Overview. Pinhole camera model Projective geometry Vanishing points and lines Projection matrix Cameras with Lenses Color Digital image

Computer Vision. The Pinhole Camera Model

Sensors and Sensing Cameras and Camera Calibration

Depth Perception with a Single Camera

Technical information about PhoToPlan

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Novel Hemispheric Image Formation: Concepts & Applications

The key to a fisheye is the relationship between latitude ø of the 3D vector and radius on the 2D fisheye image, namely a linear one where

Dimension Recognition and Geometry Reconstruction in Vectorization of Engineering Drawings

INSERTING THE PAST IN VIDEO SEQUENCES

We are IntechOpen, the world s leading publisher of Open Access books Built by scientists, for scientists. International authors and editors

CALIBRATION OF AN AMATEUR CAMERA FOR VARIOUS OBJECT DISTANCES

ECC419 IMAGE PROCESSING

Dynamic Distortion Correction for Endoscopy Systems with Exchangeable Optics

APPLICATION OF COMPUTER VISION FOR DETERMINATION OF SYMMETRICAL OBJECT POSITION IN THREE DIMENSIONAL SPACE

Image Processing & Projective geometry

Projection. Announcements. Müller-Lyer Illusion. Image formation. Readings Nalwa 2.1

PERFORMANCE EVALUATIONS OF MACRO LENSES FOR DIGITAL DOCUMENTATION OF SMALL OBJECTS

A moment-preserving approach for depth from defocus

Digital Photographic Imaging Using MOEMS

Research on 3-D measurement system based on handheld microscope

CSE 527: Introduction to Computer Vision

Image stitching. Image stitching. Video summarization. Applications of image stitching. Stitching = alignment + blending. geometrical registration

Image Extraction using Image Mining Technique

RESULTS OF 3D PHOTOGRAMMETRY ON THE CMS BARREL YOKE

MINIMISING SYSTEMATIC ERRORS IN DEMS CAUSED BY AN INACCURATE LENS MODEL

Aberrations and adaptive optics for biomedical microscopes

3-D OBJECT RECONSTRUCTION FROM MULTIPLE-STATION PANORAMA IMAGERY

CALIBRATION OF IMAGING SATELLITE SENSORS

Digital Image Processing

MULTIPLE SENSORS LENSLETS FOR SECURE DOCUMENT SCANNERS

Modeling and Synthesis of Aperture Effects in Cameras

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

CCD Automatic Gain Algorithm Design of Noncontact Measurement System Based on High-speed Circuit Breaker

Digital Image Fundamentals. Digital Image Processing. Human Visual System. Contents. Structure Of The Human Eye (cont.) Structure Of The Human Eye

Digital Image Processing

Dual-fisheye Lens Stitching for 360-degree Imaging & Video. Tuan Ho, PhD. Student Electrical Engineering Dept., UT Arlington

Reconstructing Virtual Rooms from Panoramic Images

CALIBRATION OF OPTICAL SATELLITE SENSORS

PROPERTY OF THE LARGE FORMAT DIGITAL AERIAL CAMERA DMC II

Blind Single-Image Super Resolution Reconstruction with Defocus Blur

Cameras. CSE 455, Winter 2010 January 25, 2010

ABSTRACT. Keywords: Computer-aided alignment, Misalignments, Zernike polynomials, Sensitivity matrix 1. INTRODUCTION

Angle Measure and Plane Figures

CS 443: Imaging and Multimedia Cameras and Lenses

Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1

Geometry of Aerial Photographs

Multiresolution Analysis of Connectivity

Exercise questions for Machine vision

APPLICATION OF PHOTOGRAMMETRY TO BRIDGE MONITORING

3D-scanning system for railway current collector contact strips

Using Line and Ellipse Features for Rectification of Broadcast Hockey Video

Be aware that there is no universal notation for the various quantities.

Colour correction for panoramic imaging

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

Single-view Metrology and Cameras

Advanced Lens Design

1 st IFAC Conference on Mechatronic Systems - Mechatronics 2000, September 18-20, 2000, Darmstadt, Germany

Chapters 1 & 2. Definitions and applications Conceptual basis of photogrammetric processing

Unit 1: Image Formation

CS534 Introduction to Computer Vision. Linear Filters. Ahmed Elgammal Dept. of Computer Science Rutgers University

Midterm Examination CS 534: Computational Photography

Cameras. Steve Rotenberg CSE168: Rendering Algorithms UCSD, Spring 2017

RESEARCH ON LOW ALTITUDE IMAGE ACQUISITION SYSTEM

Distance Estimation with a Two or Three Aperture SLR Digital Camera

AN AUTOMATIC PROCESS FOR THE EXTRACTION OF THE 3D MODEL OF THE HUMAN BACK SURFACE FOR SCOLIOSIS TREATMENT

Metric Accuracy Testing with Mobile Phone Cameras

A Structured Light Range Imaging System Using a Moving Correlation Code

DEVELOPMENT OF A (NEW) DIGITAL COLLIMATOR

BEAMFORMING WITH KINECT V2

Improving the Safety and Efficiency of Roadway Maintenance Phase II: Developing a Vision Guidance System for the Robotic Roadway Message Painter

A Personal Surround Environment: Projective Display with Correction for Display Surface Geometry and Extreme Lens Distortion

.VP CREATING AN INVENTED ONE POINT PERSPECTIVE SPACE

Blind Removal of Lens Distortion

Introduction to Video Forgery Detection: Part I

ELIMINATION OF COLOR FRINGES IN DIGITAL PHOTOGRAPHS CAUSED BY LATERAL CHROMATIC ABERRATION

CS6670: Computer Vision

Image Measurement of Roller Chain Board Based on CCD Qingmin Liu 1,a, Zhikui Liu 1,b, Qionghong Lei 2,c and Kui Zhang 1,d

Simultaneous geometry and color texture acquisition using a single-chip color camera

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

AR 2 kanoid: Augmented Reality ARkanoid

Lecture 02 Image Formation 1

Camera Resolution and Distortion: Advanced Edge Fitting

Keywords Unidirectional scanning, Bidirectional scanning, Overlapping region, Mosaic image, Split image

Invited Review Paper Digital camera self -calibration

Study on the UWB Rader Synchronization Technology

Superfast phase-shifting method for 3-D shape measurement

Transcription:

Digital deformation model for fisheye image rectification Wenguang Hou, 1 Mingyue Ding, 1 Nannan Qin, 2 and Xudong Lai 2, 1 Department of Bio-medical Engineering, Image Processing and Intelligence Control Key Laboratory of Education Ministry of China, Huazhong University of Science and Technology, Wuhan, 430074, China 2 School of Remote Sensing and Information Engineering, Wuhan University, Wuhan, 430079, China *laixudong@whu.edu.cn Abstract: Fisheye lens can provide a wide view over 180. It then has prominence advantages in three dimensional reconstruction and machine vision applications. However, the serious deformation in the image limits fisheye lens s usage. To overcome this obstacle, a new rectification method named DDM (Digital Deformation Model) is developed based on two dimensional perspective transformation. DDM is a type of digital grid representation of the deformation of each pixel on CCD chip which is built by interpolating the difference between the actual image coordinate and pseudo-ideal coordinate of each mark on a control panel. This method obtains the pseudo-ideal coordinate according to two dimensional perspective transformation by setting four mark s deformations on image. The main advantages are that this method does not rely on the optical principle of fisheye lens and has relatively less computation. In applications, equivalent pinhole images can be obtained after correcting fisheye lens images using DDM. 2012 Optical Society of America OCIS codes: (150.1488) Calibration; (080.1753) Computation methods. References and links 1. H. Bakstein and T. Pajdla, Panoramic mosaicing with a field of view lens, in Proceedings of IEEE Conference on Omnidirectional Vision (IEEE, 2002), pp. 60 67. 2. Y. Jia, H. Lu, and A. Xu, Fish-eye lens camera calibration for stereo vision system, Chinese J Comput. 23(11), 1215 1219 (2002). 3. J. Willneff and O. Wenisch, The calibration of wide-angle lens cameras using perspective and non-perspective projections in the context of realtime tracking applications, Proc. SPIE 8085, 80850S 80850S-9 (2011). 4. A. Parian and A. Gruen, Panoramic camera calibration using 3D straight lines, presented at ISPRS Panoramic Photogrammetry Workshop, Berlin, Germany, 24-25 Feb. 2005. 5. S. Abraham and W. Forstner, Fish-eye-stereo calibration and epipolar rectification, ISPRS J Photogramm. 59(5), 278 288 (2005). 6. P. Sturm and S. Maybank, On plane-based camera calibration: a general glgorithm, singularities, applications, in Proceedings of IEEE Conference on Computer Vision and Pattern Recognition (IEEE, 1999), pp. 432 437. 7. A. Heikkil, Geometric camera calibration using circular control points, IEEE T Pattern Anal. 22(10), 1066 1077 (2000). 8. M. Grossberg and S. Nayar, The raxel imaging model and ray-based calibration, Int J Comput Vision 61(2), 119 137 (2005). 9. I. Akio, Y. Kazukiyo, M. Nobuya, and K. Yuichiro, Calibrating view angle and lens distortion of the nikon fisheye converter FC-E8, J Forest Res. 9(3), 177 181 (2004). 10. Z. Zhang, A flexible new technique for camera calibration, IEEE T Pattern Anal. 22(11), 1330 1334 (2000). (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22252

11. D. Schneider, E. Schwalbe, and H. Maas, Validation of geometric models for fisheye lenses, ISPRS J Photogramm. 64(3), 259 266 (2009). 12. J. Kannala and S. Brandt, A generic camera calibration method for fish-eye lenses, in Proceedings of International Conference on Pattern Recognition (IEEE, 2004), pp. 10 13. 13. J. Kannala and S. Brandt, A generic camera model and calibration method for conventional, wide-angle, and fish-eye lenses, IEEE T Pattern Anal. 28(8), 1335 1340 (2006). 14. D. Gennery, Generalized camera calibration including fish-eye lenses, Int J Comput Vision 68(3), 239 266 (2006). 15. V. Orekhov, B. Abidi, C. Broaddus, and M. Abidi, Universal camera calibration with automatic distortion model selection, in Proceedings of International Conference on Image Processing (IEEE, 2007), pp. 397 400. 16. Z. Kang, L. Zhang, and S. Zlatanova, An automatic mosaicking method for building facade texture mapping using a monocular close-range image sequence, ISPRS J Photogramm. 65(3), 282 293 (2010). 1. Introduction Since the view angle of fisheye lens can be 180 or more, the images of any objects before fisheye lens can be theoretically captured. This characteristic makes it attract growing interests from the fields of panoramic imaging and photogrammetric measurement [1 3]. For example, if we want to acquire the panoramic image of a large scene, multi-images should be obtained from different positions or angles when conventional lens is used and image processing to mosaic those images is rather complex. It is obvious that this task can be easily fulfilled with a fisheye lens. However, there are still relatively less report about its usage for measurement purposes in machine vision and three dimensional reconstruction. The reason is that fisheye lens causes serious deformation in the imaging process and an accurate, generic, and easy-touse deformation rectification approach is still absent. Various efforts have been done on the calibration of panoramic camera systems using fisheye lens. Parian corrected the images of fisheye camera by forcing the straight line on images be still straight [4]. Similar to the straight line features, others such as circles, co-plane features and epipolar restriction can all be taken as the constraints in rectifying images of fisheye camera [5]. Due to the difficulty in extracting and recognizing the features on images, how to automatically perform rectification remains challenging. Most of other methods try to describe the actual imaging process using mathematical functions and then optimize these parameters based on a high accuracy control panel [6, 7]. Some earlier researchers model the imaging procedure based on the physical principle of fisheye lens and inversely transfer the imaging process to obtain images meeting pinhole condition [8 10]. Due to different lenses need to use different models in rectification, some researches attempted to establish a generalized model [11 15]. [13] proposed a model for all kinds of fisheye lens on basis of a five order polynomial, which represents a typical general model. Besides considering deformation caused by the projection ways of fisheye lens, most of methods consider the distortion terms which are deviations from the theoretical imaging model. As a special case, the deformation of fisheye lens is a generalization that includes the perspective projection and all kinds of distortions which violate the ideal imaging model. Gennery used the same set of conventional lens distortion parameters and obtained a relative precision of about 1:10000 after bundle adjustment when the special mathematical function was adopted in calibraton [14]. [13] further extends the general imaging model by considering the fisheye lens s deviations from the precise radial symmetry and the inaccuracy caused in projection. Then, they introduce a basic model containing six internal camera parameters and determine those parameters in four steps by viewing a calibration plane with control points in known positions. In the experiments, they obtained the accuracy of about 1/2500 after least-squares adjustment [13]. Moreover, outliers that disagree excessively with other data are removed by means of automatic editing based on analysis of residuals in these methods. These methods are essentially similar in that they try to approximate the imaging process (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22253

with a mathematical function. However, mathematical function can only express the symmetric deformations, other imperfections in imaging system can not be covered which leads to the usual methods be theoretically and practically imperfect. Another drawback is that the computational burden is usually high in those methods. To provide a general and easy-to-use method, this paper investigates the strategy of DDM (Digital Deformation Model). Based on the two dimensional perspective transformation, an equivalent pinhole image can be obtained by correcting all deformations in fisheye camera imaging process. 2. Fisheye lens model This section will briefly discuss the theoretical model of conventional lens and fisheye lens. The perspective projection of a pinhole camera can be simply described by: r = f tanθ, (perspective pro jection) (1) while the non-perspective projection of a fisheye lens can be expressed by: r = 2 f tan(θ/2) r = f θ r = 2 f sin(θ/2) r = f sin(θ) (stereographic pro jection) (equidistance pro jection) (equisolid angle pro jection) (orthogonal pro jection) (2) In Eqs. (1) (2), θ is the angle between the optical axis and incoming ray, r is the distance between the image point and the principal point, f is the focal length. The most common model of fisheye lens may be equidistance projection. The schematic description of different projections for fisheye lens are illustrated in Fig. 1(a) and the difference between pinhole lens and fisheye lens is shown in Fig. 1(b) [13]. Compared with that of perspective projection, the images of non-perspective projection are close to the principal point. This character makes the view angle of the fisheye lens be more than that of common lens. At the same time, it can be known that actual imaging surface of fisheye lens is a hemisphere with respect to a plane in pinhole lens. Therefore, the deformation of fisheye lens is mainly caused by projecting the image on hemisphere surface to actual imaging plane. According to the principle of perspective projection in Eq. (1), an ideal point (distortion-free) is the projection of object with the following homogenous coordinates: ˆx ŷ = λ f x s x 0 0 [ ] X 0 f y y 0 0 R T 0 1 0 0 1 0 T Y 1 Z, (3) 1 where, ( ˆx,ŷ) is point coordinate on image, (X,Y,Z) denotes the 3D object coordinate, f x, f y are the focal lengths in x, y axis respectively, (x 0,y 0 ) is the image coordinate of principal point, s is the skewness factor between two axes on the image plane, λ is the scale coefficient. R, T represent the rotation matrix and translation vector of the image. Then, the pinhole imaging process can be written as: ˆx = A 1X + A 2 Y + A 3 Z + A 4 A 9 X + A 10 Y + A 11 Z + 1 ŷ = A 5X + A 6 Y + A 7 Z + A 8 A 9 X + A 10 Y + A 11 Z + 1. (4) There are totally 11 unknown parameters (5 intrinsic and 6 extrinsic parameters) in Eq. (3). It is obvious that the same number of unknown parameters are appeared in Eq. (4). So, all intrinsic (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22254

(a) (b) Fig. 1. Principles of different lens. (a) the projections of different lens, p, p 1, p 2, p 3 and p 4 are perspective projection, stereographic projection, equidistance projection, equisolid angle projection and orthogonal projection, r, r 1, r 2, r 3 and r 4 are their corresponding distances between the image points and principal point; (b) difference between pinhole lens and fisheye lens. For fisheye lens, the actual image is the projection of perspective image on hemisphere surface to image plane. and extrinsic elements are implicitly contained in the transformation coefficients A 1,A 2, A 11. Thus, Eq. (4) can be considered as another expression of perspective transformation. Unfortunately, in practice, the pinhole lens does not exactly follow the designed model. In another word, the image distortion is unavoidable. In most situations, the distortion is mainly dominated by the lens radial components especially by the first two terms. Real lens may deviate from precise radial symmetry and therefore some researchers supplement the distortion model with tangential parts. It has also been found that any more elaborated modeling not only would not help, but also would cause numerical instability. Therefore, the radial and tangential models shown in Eq. (5) are usually used to estimate lens distortions. { Δx =(x x 0 ) k 1 [(x x 0 ) 2 +(y y 0 ) 2 ]+(x x 0 ) k 2 [(x x 0 ) 2 +(y y 0 ) 2 ] 2 Δy =(y y 0 ) k 1 [(x x 0 ) 2 +(y y 0 ) 2 ]+(y y 0 ) k 2 [(y y 0 ) 2 +(y y 0 ) 2 ] 2 (5) Then, the relationship between the observed image coordinate (x,y) (distorted) and the ideal point ( ˆx,ŷ) is expressed as: [ ˆx ŷ] = [ ] x x0 Δx. (6) y y 0 Δy In Eq. (5), (x 0,y 0 ) represents the coordinate of principal point, k 1, k 2 are the radial distortion coefficients. It is obvious that iterations are needed to optimize parameters in the process of calibration. At the same time, iterative computation is still necessary in process of image correction. Distortion correction is to obtain the grey value of each pixel from original image. That is to say, we should compute the corresponding point (x,y) on the original image for each pixel ( ˆx,ŷ) on the corrected image to be generated. According to Eqs. (5) (6), this process is iterative. This is the case of common pinhole camera. For fisheye lens, the deformation (Δx,Δy) is (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22255

a generalization that includes the non-perspective projection and all kinds of distortions which violate the ideal imaging model. The imaging model is much more complex than above which makes the process of correction be rather complex. 3. Digital deformation model DDM intends to establish the deformation model for all imaging systems based on a standard control panel. It is a three dimensional model whose plane coordinates are the row and column of CCD (Charge Coupled Device) chip and the height is the deformation corresponding to the pixel which may be the deformation in x,y axis or radial direction. The height includes not only the deformation caused by projection, radial and tangential distortions of lens, error of electric performance of CCD, but also any other errors caused by medium between object and lens. In all, the value of deformation should comprise all systemic and accidental errors which make the image and object violate the collinear restriction. The purpose of establishing DDM of a camera is to express the total deformation and correct the images taken in the similar condition. Images after correcting will meet the pinhole relationship to object. For ideal pinhole imaging, the image and object points are collinear. According to Eq. (4), A 3 Z, A 7 Z, A 11 Z are all the same when all objects are on a same plane. In this case, after simplification, Eq. (4) can be rewritten as: ˆx = B 1X + B 2 Y + B 3 ŷ = B 4X + B 5 Y + B 6 B 7 X + B 8 Y + 1 B 7 X + B 8 Y + 1. (7) The relationship between A 1,A 2, A 11 and B 1,B 2, B 8 is as follows: B 1 = A 1 B 2 = A 2 B 3 = A 3Z+A 4 B 4 = A 5 (8) B 5 = A 6 B 6 = A 7Z+A 8 B 7 = A 9 B 8 = A 10 In Eq. (7), ( ˆx,ŷ) is the mark s ideal image coordinate and (X,Y ) is the corresponding object coordinate, B 1,B 2, B 8 are the transform coefficients which can be accurately computed when the image coordinates and object coordinates of four marks are known. Due to the influence of all kinds of errors, the actual imaging process including fisheye lens can be described as Eq. (9) by combining Eqs. (6) and (7). x x 0 Δx = B 1X + B 2 Y + B 3 B 7 X + B 8 Y + 1 y y 0 Δy = B 4X + B 5 Y + B 6 B 7 X + B 8 Y + 1 (9) x 0,y 0 are constant. So, we can easily obtain Eq. (10) by using other symbols. The relationship between two groups of coefficients will not detailed. x Δx = C 1X +C 2 Y +C 3 C 7 X +C 8 Y + 1 y Δy = C 4X +C 5 Y +C 6 C 7 X +C 8 Y + 1 Since the deformation (Δx,Δy) is unknown, the coefficients C 1,C 2, C 8 can t be computed. It means this problem is really an ill-posed problem. To obtain its solution, our method artificially sets the deformations of four points to zero and computes the coefficients C 1,C 2, C 8 on basis of Eq. (10). The pseudo-ideal coordinate (x,y ) of each mark can then be obtained. It is clear that the pseudo-ideal image and control panel meet collinear relationship. The difference between pseudo-ideal image and actual image is: (10) d x = x x d y = y y (11) (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22256

After obtaining the differences between pseudo-ideal coordinate and actual coordinate of all marks, deformation of CCD grid vertexes can be interpolated according to bilinear interpolation using 4 nearest marks deformations. After interpolating the deformation of each pixel, establishment of DDM of this camera is done. For all images captured by this camera, the coordinate of each pixel after correcting can be computed using Eq. (11), in which, the deformation (Δx, Δy) is retrieved from DDM. According to the definition of DDM, the corrected value of each pixel is not the actual deformation, while the corrected images still meet the pinhole condition to object. That is to say, an equivalent pinhole image is produced after correction using DDM. Then, we can see DDM actually provides a flexible solution to solve the ill-posed problem in Eq. (10). 4. Algorithm details The main steps of establishing DDM are: 1) Establish two dimensional control panel composed by a certain number of marks and obtain marks spatial coordinates (X i,y i ) i = 1,2,,N. The two factors of marks shape and physical property are mainly considered. As those in many applications, circle marks are usually adopted due to its isotropic. Empirically, highly contrasted images may be obtained when reflective materials are used to make the marks. High accuracy measurement equipment such as theodolite helps to increase the accuracy of the marks spatial coordinates. 2) Capture the image of this control panel using the fisheye lens camera. The control panel should fill the whole field of view and the image contrast must be sufficient. 3) Segment each mark and obtain image coordinates (x i,y i ) i = 1,2,,N for all marks. The grey gravity center of each mark should be its location on image if the mark is symmetry. 4) Choose four marks on image near to the corners of image with approximately same distances to image center and set their deformations to zero. The purpose of setting the deformations of four marks is to compute the pseudo-ideal transformation coefficients and then to obtain a pseudo-ideal image. Theoretically, four points can be randomly chosen. However, when four marks on image with same distance to image center, their actual deformations are close. Then, the pseudo-ideal image to be established will be approximately parallel to the actual image. I.e, we hope the external parameters of the pseudo-ideal image be closely equal to those of actual image. Accordingly, when DDM is used to correct other images taken by this camera, the corrected image seems to be taken in the same position as actual image. We choose the four points on corners simply due to their deformations are largest on the whole image. 5) Compute the perspective transformation coefficients C 1,C 2, C 8 on basis of Eq. (10) according to the least squares adjustment. 6) Compute the pseudo-ideal image coordinates (x i,y i ) i = 1,2,,N for all marks using Eq. (7), in which the coefficients are C 1,C 2, C 8. The pseudo-ideal image strictly meets 2D perspective transformation to the control panel. 7) Compute difference between actual and pseudo-ideal coordinate for each mark. 8) Interpolate the deformation for each integer pixel based on the bilinear rule. To perform this task, we construct a rectangle mesh model for all marks on the image, then, the nearest marks of each pixel can be found by judging which rectangle is the pixel located in. After interpolating the deformations of all pixels, DDM has been established. 9) Correct images obtained in same condition using DDM. Compared with mathematical function based methods, there is no complex iteration to optimize parameters in DDM establishment and applications which may greatly reduce the computation cost. (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22257

5. Experiments and results In this part, our method will be demonstrated through the experiments. Fisheye lens and conventional lens are used to validate the model of DDM. Based on a three dimensional control panel, a wide view lens is taken to estimate the accuracy of DDM. 5.1. Fisheye images rectification using DDM A control network with 1944 marks has been established which is approximately located on a vertical plane. The height differences relative to the plane among marks can be neglected. The accuracy of marks object coordinates is ±0.1mm. In this experiment, we intend to establish the DDM of a camera with resolution of 3024 2016, lens model is F/2.8G ED with a 180-degree angle of view, focus length is 10.5mm made by Nikon. Fig. 2(a) is the image of the control panel taken using this fisheye camera. Fig. 2(b) shows the DDM in radial direction, whose height is H = (dx 2 + dy 2 ), d x,d y are the deformation values in x,y axis respectively. (a) (b) Fig. 2. DDM establishment based on 2D control panel, (a) the control panel image taken using fisheye camera; (b) the established digital deformation model. (a) (b) Fig. 3. Deformation correction of fisheye image using DDM, (a) building image taken by fisheye lens; (b) corrected image using DDM. Figure 3(a) shows the image of a building captured by this camera, in which, many deformations are existed. Fig. 3(b) is the corrected image using DDM which conforms to pinhole perspective transformation. (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22258

(a) Original Image (b) Perspective Image (c) Facade Image Fig. 4. Fisheye lens Calibration. Figure 4 shows another example for fisheye lens calibration using DDM. Fig. 4(a) is the original image of a high building. Fig. 4(b) is its corrected image in which the straight lines of building remain straight on image. It means that Fig. 4(b) is the perspective image of this building. Fig. 4(c) is building s facade image obtained according to the theory of vanishing points [16]. 5.2. Quantitative evaluation In Fig. 5(a), the image of a line is taken by a Finepix S1 Pro camera with 28mm conventional pinhole lens. The line is a little bending on the image (white curve) which is mainly caused by the radial distortion of lens. The blue straight line connects two end points of the curve. The corrected image using the DDM is shown as Fig. 5(b), in which, the white curve and blue line are almost overlapped. On above two figures, we further compute the distance between blue line and the white curve. Shown in Table 1, (x,y) is the coordinate of point on white line, d is the distance from each point on the white curve line to the blue straight line. In order to estimate DDM s accuracy, we capture three images of a three dimensional control panel using this camera. Firstly, three images are corrected using our established DDM. Then, the interior and exterior parameters (not considering distortions) of three images are computed according to Eq. (3). Lastly, we calculate the object coordinates of 20 marks using the coordinates on corrected image. The mean errors between calculated coordinates and original data are M X = 0.44mm,M Y = 0.42mm,M Z = 0.94mm. In establishing DDM, this camera s optical axis and 2D control panel are approximately perpendicular to each other. Moreover, their intersection is close to the center of 2D control panel. In addition, distance between camera and 2D control panel is about 0.5m since this camera has a wide view and the control panel should try to fill the whole image. In measuring 3D control panel, distance from camera to object is about 2m. The size of three dimensional control panel is about 2.5m 2m 2m. Then, the relative accuracies are X :1/5000,Y :1/5000, Z :1/2000. (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22259

(a) Original Image of a Line (b) Corrected Image Fig. 5. Image after Correction using DDM. Table 1. Distance comparisons after correction using DDM No. Points on original image Points on the corrected image x y d x y d 1 2523 28 0.0 2523 30 0.0 2 2533 149 3.3 2530 150 0.6 3 2541 264 4.9 2536 268 0.3 4 2548 384 5.2 2543 390 0.7 5 2556 508 6.4 2549 512 0.2 6 2564 624 7.9 2555 628 0.0 7 2572 747 9.1 2562 749 0.5 8 2580 875 10.0 2569 877 0.7 9 2586 992 9.5 2575 992 0.5 10 2593 1117 9.6 2581 1119 0.3 11 2599 1246 8.4 2588 1242 0.1 12 2604 1370 6.5 2595 1364 0.6 13 2609 1497 4.5 2602 1492 0.7 14 2615 1624 3.4 2608 1619 0.1 15 2620 1743 1.8 2615 1737 0.6 16 2625 1866 0.0 2621 1861 0.0 6. Conclusion The paper introduces a novel approach to correct the deformation of fisheye lens based on two dimensional perspective transformation. DDM can obtain the deformation of each pixel on CCD by calculating the difference between real coordinate and the pseudo-ideal coordinate of a standard panel. In applications, an equivalent pinhole image can be obtained after correcting original image using DDM. The main advantages are that the approach doesn t rely on the optical constructions of lens and algorithm is relatively simple, which in all make it a more practical approach for fisheye image rectification. (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22260

The limitation of our method lies in it can not obtain the parameters such as focus length, the principal point and the skewness factor. It then can be taken as a previous step before camera calibration. Even so, the method is still useful due to the unknown parameters may not be necessary in some applications and the process of estimating interior parameters for the corrected images is relatively simple. The method of DDM can extend fisheye lens usages in computer visions, photogrammetric measurement and etc. How to improve the accuracy should be our future work. Acknowledgments This study was supported by the Natural Science Fund of P. R. China under contract 41171289 and the Special Fund of China Central Collegiate Basic Scientific Research Bursary under contract 2011QN239. (C) 2012 OSA 24 September 2012 / Vol. 20, No. 20 / OPTICS EXPRESS 22261