CN101726855B - Correction method of fisheye image distortion on basis of cubic projection - Google Patents

Correction method of fisheye image distortion on basis of cubic projection Download PDF

Info

Publication number
CN101726855B
CN101726855B CN2009102285813A CN200910228581A CN101726855B CN 101726855 B CN101726855 B CN 101726855B CN 2009102285813 A CN2009102285813 A CN 2009102285813A CN 200910228581 A CN200910228581 A CN 200910228581A CN 101726855 B CN101726855 B CN 101726855B
Authority
CN
China
Prior art keywords
fish eye
point
projection
cubic
fisheye
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2009102285813A
Other languages
Chinese (zh)
Other versions
CN101726855A (en
Inventor
丁承君
段萍
睢佰龙
王南
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hebei University of Technology
Original Assignee
Hebei University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hebei University of Technology filed Critical Hebei University of Technology
Priority to CN2009102285813A priority Critical patent/CN101726855B/en
Publication of CN101726855A publication Critical patent/CN101726855A/en
Application granted granted Critical
Publication of CN101726855B publication Critical patent/CN101726855B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

The invention belongs to the field of advanced manufacturing technology, relating to a correction method of fisheye image distortion on the basis of cubic projection. The correction method comprises the following steps: 1. using a fisheye lens to obtain an imaging model, and calibrating the fisheye lens according to the imaging model to obtain a calibration parameter; 2. according to the collected fisheye image, determining a viewpoint, taking the viewpoint as the original point of a coordinate system, and building a cubic perspective projection model to obtain the cubic perspective projection of a spatial point; 3. building a mapping relation between the cubic perspective projection of the spatial point and the fisheye image; and 4. using bilinearity interpolation to realize the distortion correction of the fisheye image. The invention utilizes a cubic projection model to correct distorted fisheye images and can effectively overcome the geometric distortion existing in the original fisheye images, and the corrected image conforms to the intuitional feeling of people and has strong sense of reality.

Description

Based on cubic projection to the fish eye images distortion correction method
Technical field
The invention belongs to the advanced manufacturing technology field, relate to how much antidotes of a kind of fish eye lens fish eye lens picture distortion.
Background technology
The panorama picture of fisheye lens stereo visual system is at the micro robot vision guided navigation and closely have a wide range of applications in large field object identification and the location. nearly 180 ° of fish eye lens camera field of view corner connection, can realize closely or the stereoscopic vision perception of the big visual field of super close distance, but also introduced very serious anamorphose simultaneously. the main cause of anamorphose is that fish-eye real imaging surface is not the plane, but be similar to spherical curved surface. therefore, panorama picture of fisheye lens is not desirable perspective projection, can not demarcate with conventional camera marking method.This will use have big visual field (field of view) if wide-angle or flake video camera. but use but the image that uses wide-angle or flake video camera to take has very serious deformation. we want to utilize these to have the perspective projection information of gross distortion image, so just these deformation patterns need be proofreaied and correct the perspective projection image that be accustomed to for people.
At present, the method for fish eye images distortion correction has a lot, wherein based on sphere model and the most frequently used based on the fish eye lens rectification antidote of cylinder model.
Summary of the invention
The object of the present invention is to provide how much antidotes of a kind of fish eye lens picture distortion.This method at first obtains imaging model with fish eye lens, and fish eye lens is demarcated according to imaging model, obtain calibrating parameters, utilizing the fisheye projection curve then, use cubic projection, determine mapping relations according to imaging plane, fish eye images is carried out distortion correction, the image splicing after will proofreading and correct at last.
Of the present invention based on cubic projection to the fish eye images distortion correction method, comprise the steps:
Step 1: obtain imaging model with fish eye lens, and according to imaging model fish eye lens is demarcated and to be obtained calibrating parameters;
Step 2: according to the fish eye images that collects, determine viewpoint, and be coordinate origin, set up cube perspective projection model, obtain the cube perspective projection of spatial point with the viewpoint;
Step 3: set up the cube perspective projection of spatial point and the mapping relations between the fish eye images;
Step 4: use bilinear interpolation value method, realize distortion correction to fish eye images.
In the above-mentioned step 4, establish spatial point p (x 0, y 0, z 0) through cubic projection model Nonlinear Mapping be on the fish eye images some m (x, y), the floating-point coordinate of this point is (i+u, j+v), (i ∈ Z+, j ∈ Z+, u ∈ [0,1), v ∈ [0,1)), i wherein, j is the integer part of floating-point coordinate, u, v is the fractional part of floating-point coordinate, it is value [0,1) interval floating number is with f (x, image coordinate (x after y) expression is proofreaied and correct, y) pixel value of locating, then m (x, pixel value y) is according to f (i+u, j+v)=(1-u) (1-v) f (i, j)+(1-u) vf (i, j+1)+and u (1-v) f (i+1, j)+(i+1 j+1) tries to achieve uvf.
The present invention's fish eye images of correcting distortion based on the cubic projection model can effectively overcome the geometry deformation that original fish eye images exists, and makes the image after proofreading and correct meet people's visual sense, and the sense of reality is stronger.
Description of drawings
Fig. 1 has identified the view coordinate of cubic projection.
The cubical perspective projection model of Fig. 2.
Fig. 3 fish eye images polar coordinate system.
Fig. 4 bilinear interpolation is calculated schematic diagram.
Embodiment
Step 1: obtain imaging model with fish eye lens, and according to imaging model fish eye lens is demarcated and to be obtained calibrating parameters.This step is demarcated according to fish-eye concrete parameter according to the scaling method of routine.
Step 2: according to the fish eye images that collects, determining viewpoint, is initial point with the viewpoint, sets up cube perspective projection model.
Referring to Fig. 1, set up coordinate system earlier, owing to adopt cubic projection, and there are 6 faces a cube surface, so need carry out segmentation to representing cubical function.
If cube center (being the viewpoint of the fish eye images gathered) is the view coordinate initial point, a is the cubical length of side.
Then the equation in coordinates of 6 faces of cube is respectively:
ABFE: { x = a 2 , ( - a 2 ≤ y , z ≤ a 2 ) }
DCGH: { x = - a 2 , ( - a 2 ≤ y , z ≤ a 2 ) }
ADHE: { y = - a 2 , ( - a 2 ≤ x , z ≤ a 2 ) }
BCGF: { y = a 2 , ( - a 2 ≤ x , z ≤ a 2 ) }
HEFG: { z = a 2 , ( - a 2 ≤ x , y ≤ a 2 ) }
ABCD: { z = - a 2 , ( - a 2 ≤ x , y ≤ a 2 ) }
Space any point p (x 0, y 0, z 0) with viewpoint (0,0,0) line equation be:
x x 0 = y y 0 = z z 0
Calculate corresponding points on each face of a p and cube, the coordinate of corresponding points is expressed as respectively on each face of cube:
ABFE: ( a 2 , ay 0 2 x 0 , az 0 2 x 0 )
DCGH: ( - a 2 , - ay 0 2 x 0 , az 0 2 x 0 )
ADHE: ( - ax 0 2 y 0 , - a 2 , - az 0 2 y 0 )
BCGF: ( ax 0 2 y 0 , a 2 , az 0 2 y 0 )
HEFG: ( ax 0 2 z 0 , ay 0 2 z 0 , a 2 )
ABCD: ( - ax 0 2 z 0 , - ay 0 2 z 0 , - a 2 )
So just obtained cubical perspective projection model, and with spatial point
Behind known cubical projected image, it is as above shown in Figure 2 that the cube perspective projection is converted to plane projection.For on the cube a bit, such as the p on the ABCD face 0Pixel coordinate be (X, Y, Z), then the p on its corresponding projection plane (x, pixel coordinate y) then is: x = X y = Y , Similar calculating all can be done in remaining plane.
Step 3: set up the cube perspective projection of spatial point and the mapping relations between the fish eye images.
According to the plane projection of space cube perspective projection model cubic projection image and the mapping relations of fish eye images;
Can obtain the fish eye lens correction model by cube perspective projection model, fish eye images is carried out distortion correction.
If p is (x 0, y 0, z 0) be any cube perspective projection point of space, the coordinate of its corresponding points on each face of cube is shown in step 1 two, because fish eye lens, this point is mapped to 1 m on the fish eye images plane, the rectangular coordinate of m is (x, y), the intersection point of main shaft z and fish eye images, promptly the rectangular coordinate of principal point is designated as (x p, y p), with principal point (x p, y p) (generally all recognize the center that is positioned at figure) set up polar coordinate system for the origin of coordinates of polar coordinate system, sees Fig. 3, then have r = ( x - x p ) 2 + ( y - y p ) 2 ,
tan θ = y - y p x - x p
P (x 0, y 0, z 0) according to step 1,2., 3 calculate the coordinate figure m make new advances, and (r θ) has just finished the one by one mapping of picture planar point to cube point, and then the gray value of this point is obtained a gray value comparatively accurately by the method for bilinear interpolation.
Step 4: use bilinear interpolation value method, realize distortion correction to fish eye images.
Use contrary projection promptly by the some p (x on the space projection cube according to step 3 0, y 0, z 0) correspondence find m on the imaging plane (x, coordinate y), existing to its rectification.
Use bilinear interpolation, (X, pixel value Y) will be by 4 pixel coordinate point interpolations acquisitions on the corresponding fish eye images can to make image object pixel coordinate point P after proofreading and correct.
Spatial point p (x 0, y 0, z 0) be that (x y), obtains m (x by contrary projection to fish-eye image picture point m through cubic projection model Nonlinear Mapping, y) floating-point coordinate: (i+u, j+v), (i ∈ Z+, j ∈ Z+, u ∈ [0,1), v ∈ [0,1)) (and be x=i+u, y=j+v, i wherein, j is the integer part of floating-point coordinate, u, v is the fractional part of floating-point coordinate, is value [0,1) interval floating number), with f (x, image coordinate (x, the pixel value of y) locating after y) expression is proofreaied and correct, m (x then, pixel value f y) (x, y)=(i+u can be (i by coordinate on the fish eye images j+v) to f, j), (i+1, j), (i, j+1), (i+1, j+1) value of pairing 4 pixels decision (see figure 4), because the gradation of image value is followed all linear distributions of vertical both direction in level, can obtain the transformation for mula as subinverse projection coordinate:
f(i+u,j+v)=(1-u)(1-v)f(i,j)+(1-u)vf(i,j+1)+u(1-v)f(i+1,j)+uvf(i+1,j+1)
Use bilinear interpolation value method, promptly according to above-mentioned formula, (X, pixel value Y) will be obtained by 4 pixel interpolation on the corresponding fish eye images image object pixel P after the correction.

Claims (1)

  1. One kind based on cubic projection to the fish eye images distortion correction method, comprise the steps:
    Step 1: obtain imaging model with fish eye lens, and according to imaging model fish eye lens is demarcated and to be obtained calibrating parameters;
    Step 2: according to the fish eye images that collects, determine viewpoint, and be coordinate origin, set up cube perspective projection model, obtain the cube perspective projection of spatial point with the viewpoint;
    Step 3: set up the cube perspective projection of spatial point and the mapping relations between the fish eye images;
    Step 4: use bilinear interpolation value method, realize the distortion correction to fish eye images, method is as follows: establish spatial point p (x 0, y 0, z 0) through cubic projection model Nonlinear Mapping be on the fish eye images some m (x, y), the floating-point coordinate of this point be (i+u, j+v), (i ∈ Z+, j ∈ Z+, u ∈ [0,1), v ∈ [0,1)), wherein i, j are the integer part of floating-point coordinate, and u, v are the fractional part of floating-point coordinate, are values [0,1) interval floating number is with f (x, image coordinate (x after y) expression is proofreaied and correct, y) pixel value of locating, then m (x, pixel value y) is tried to achieve according to following formula:
    f(i+u,j+v)=(1-u)(1-v)f(i,j)+(1-u)vf(i,j+1)+u(1-v)f(i+1,j)+uvf(i+1,j+1)。
CN2009102285813A 2009-11-13 2009-11-13 Correction method of fisheye image distortion on basis of cubic projection Expired - Fee Related CN101726855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102285813A CN101726855B (en) 2009-11-13 2009-11-13 Correction method of fisheye image distortion on basis of cubic projection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102285813A CN101726855B (en) 2009-11-13 2009-11-13 Correction method of fisheye image distortion on basis of cubic projection

Publications (2)

Publication Number Publication Date
CN101726855A CN101726855A (en) 2010-06-09
CN101726855B true CN101726855B (en) 2011-05-11

Family

ID=42447957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102285813A Expired - Fee Related CN101726855B (en) 2009-11-13 2009-11-13 Correction method of fisheye image distortion on basis of cubic projection

Country Status (1)

Country Link
CN (1) CN101726855B (en)

Families Citing this family (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917577B (en) * 2010-07-20 2012-07-25 惠州市华阳通用电子有限公司 Embedded system and video correction method thereof
CN102096923B (en) * 2011-01-20 2013-07-24 上海杰图软件技术有限公司 Fisheye calibration method and device
CN102169573B (en) * 2011-03-23 2013-11-06 北京大学 Real-time distortion correction method and system of lens with high precision and wide field of view
CN102324134A (en) * 2011-09-19 2012-01-18 广州广电运通金融电子股份有限公司 Valuable document identification method and device
CN102509261B (en) * 2011-10-10 2014-05-07 宁波大学 Distortion correction method for fisheye lens
WO2013130082A1 (en) * 2012-03-01 2013-09-06 Geo Semiconductor Inc. Method and system for adaptive perspective correction of ultra wide-angle lens images
US10664994B2 (en) * 2013-02-25 2020-05-26 Cognex Corporation System and method for calibration of machine vision cameras along at least three discrete planes
CN103325109B (en) * 2013-05-29 2016-02-17 湖南源信光电科技有限公司 Be applicable to the distortion correction method of the fish eye images of wall-mounted type panoramic camera
US10154241B2 (en) * 2014-09-05 2018-12-11 Polight As Depth map based perspective correction in digital photos
CN104315995B (en) * 2014-11-15 2017-02-01 中国科学院光电研究院 TOF depth camera three-dimensional coordinate calibration device and method based on virtual multi-cube standard target
CN104778656B (en) * 2015-04-22 2018-02-06 江苏物联网研究发展中心 Fisheye image correcting method based on spherical perspective projection
CN107346530B (en) * 2016-05-06 2020-09-04 完美幻境(北京)科技有限公司 Projection method and system for correcting fisheye image
CN106846409B (en) * 2016-10-28 2020-05-01 北京鑫洋泉电子科技有限公司 Calibration method and device of fisheye camera
CN106780374B (en) * 2016-12-01 2020-04-24 哈尔滨工业大学 Fisheye image distortion correction method based on fisheye imaging model
CN107835435B (en) * 2017-06-09 2021-08-20 越野一族(北京)传媒科技有限公司 Event wide-view live broadcasting equipment and associated live broadcasting system and method
CN107437273A (en) * 2017-09-06 2017-12-05 深圳岚锋创视网络科技有限公司 Six degree of freedom three-dimensional reconstruction method, system and the portable terminal of a kind of virtual reality
CN107749050B (en) * 2017-09-30 2020-05-15 珠海市杰理科技股份有限公司 Fisheye image correction method and device and computer equipment
CN108053385A (en) * 2018-01-24 2018-05-18 桂林电子科技大学 A kind of real-time correction system of flake video and method
CN108764152B (en) * 2018-05-29 2020-12-04 北京物灵智能科技有限公司 Method and device for realizing interactive prompt based on picture matching and storage equipment
CN109214982B (en) * 2018-09-11 2022-09-20 大连理工大学 Three-dimensional point cloud imaging method based on double-cylinder projection model
CN109816732B (en) * 2018-12-29 2020-12-11 百度在线网络技术(北京)有限公司 Calibration method, calibration system, correction method, correction system and vehicle
CN110349109B (en) * 2019-07-12 2023-04-21 创新奇智(重庆)科技有限公司 Fisheye distortion correction method and system and electronic equipment thereof
CN112927304B (en) * 2021-02-22 2022-08-19 桂林电子科技大学 Fish-eye lens calibration method based on convolutional neural network
CN114972013B (en) * 2022-05-11 2023-10-13 桂林理工大学 Fisheye image rapid orthorectification method based on spherical geometry single transformation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6005611A (en) * 1994-05-27 1999-12-21 Be Here Corporation Wide-angle image dewarping method and apparatus
CN1412537A (en) * 2001-10-15 2003-04-23 欧普罗科技股份有限公司 Method for obtaing optical projection parameter of camera
CN101072288A (en) * 2007-06-15 2007-11-14 林进灯 Method for obtaining fish-eye image correction relationship and fish-eye correction
CN101577002A (en) * 2009-06-16 2009-11-11 天津理工大学 Calibration method of fish-eye lens imaging system applied to target detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6005611A (en) * 1994-05-27 1999-12-21 Be Here Corporation Wide-angle image dewarping method and apparatus
CN1412537A (en) * 2001-10-15 2003-04-23 欧普罗科技股份有限公司 Method for obtaing optical projection parameter of camera
CN101072288A (en) * 2007-06-15 2007-11-14 林进灯 Method for obtaining fish-eye image correction relationship and fish-eye correction
CN101577002A (en) * 2009-06-16 2009-11-11 天津理工大学 Calibration method of fish-eye lens imaging system applied to target detection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
崔汉国等.鱼眼图像校正及拼接的研究与实现.《计算机工程》.2007,第33卷(第10期),190-192,209. *
韦群等.基于立方体全景图的虚拟场景浏览技术研究及实现.《中国图象图形学报》.2003,第8卷(第9期),1061-1066. *

Also Published As

Publication number Publication date
CN101726855A (en) 2010-06-09

Similar Documents

Publication Publication Date Title
CN101726855B (en) Correction method of fisheye image distortion on basis of cubic projection
CN101783011B (en) Distortion correction method of fish eye lens
US11350073B2 (en) Disparity image stitching and visualization method based on multiple pairs of binocular cameras
US10176595B2 (en) Image processing apparatus having automatic compensation function for image obtained from camera, and method thereof
CN109446892B (en) Human eye attention positioning method and system based on deep neural network
CN103177439B (en) A kind of automatic calibration method based on black and white lattice corners Matching
CN102005039B (en) Fish-eye camera stereo vision depth measuring method based on Taylor series model
CN107705252B (en) Method and system suitable for splicing, unfolding and correcting binocular fisheye image
CN102609941A (en) Three-dimensional registering method based on ToF (Time-of-Flight) depth camera
CN112686877B (en) Binocular camera-based three-dimensional house damage model construction and measurement method and system
CN101883291A (en) Method for drawing viewpoints by reinforcing interested region
CN103136720A (en) Vehicle-mounted 360-degree panorama mosaic method
CN105243637A (en) Panorama image stitching method based on three-dimensional laser point cloud
CN103646394A (en) Mixed visual system calibration method based on Kinect camera
CN104574289A (en) Fish-eye image distortion correction algorithm based on ellipsoidal model
CN105825470A (en) Fisheye image correction method base on point cloud image
CN102609977A (en) Depth integration and curved-surface evolution based multi-viewpoint three-dimensional reconstruction method
CN102081798B (en) Epipolar rectification method for fish-eye stereo camera pair
CN113362228A (en) Method and system for splicing panoramic images based on improved distortion correction and mark splicing
CN104778656A (en) Fisheye image correction method on basis of spherical perspective projection
CN105488766A (en) Fish-eye lens image correcting method and device
US20230351625A1 (en) A method for measuring the topography of an environment
CN105139336B (en) A kind of method of multichannel full-view image conversion ball curtain flake film
CN105072433B (en) Depth perception mapping method applied to head track virtual reality system
CN103413304A (en) Virtual array synthetic aperture perspective imaging method based on color depth fusion

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110511

Termination date: 20131113