CN102096899A - Correction method of linear array camera image - Google Patents
Correction method of linear array camera image Download PDFInfo
- Publication number
- CN102096899A CN102096899A CN2010105905914A CN201010590591A CN102096899A CN 102096899 A CN102096899 A CN 102096899A CN 2010105905914 A CN2010105905914 A CN 2010105905914A CN 201010590591 A CN201010590591 A CN 201010590591A CN 102096899 A CN102096899 A CN 102096899A
- Authority
- CN
- China
- Prior art keywords
- image
- line
- digital camera
- point
- scan digital
- 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.)
- Granted
Links
Images
Abstract
The invention discloses a correction method of a linear array camera image, comprising the following steps of, firstly, setting a calibration object in an object image to be processed; secondly, detecting a boundary point in the calibration object; thirdly, solving a motion parameter of the calibration object; and fourthly, carrying out affine transformation on a corresponding point in the object image to be processed according to a calculation result of the third step, wherein the image acquired after transformation is a correction image. The image correction method realizes geometric correction of a deformation image photographed by a linear array camera through mathematical transformation, is simple and easy to operate, has good correction effect and is particularly suitable for being combined with a method for processing the image by automatically searching the boundary point.
Description
Technical field
The present invention relates to a kind of method for correcting image, relate in particular to a kind of method of carrying out geometry correction, belong to the machine vision technique field at the captured deformation pattern of line-scan digital camera (linecamera).
Background technology
In field of machine vision, line-scan digital camera is the special visual machine of a class.(area camera) compares with normally used area array cameras, and its imageing sensor has only delegation's photosensitive pixel, and this design makes high sweep frequency and high resolving power become possibility.Therefore, line-scan digital camera is mainly used in the Flame Image Process in fields such as industry, medical treatment, scientific research and safety.
The typical field of application of line-scan digital camera is to detect the object of continuous motion, especially lays particular emphasis on the detection to successive logistics, as wire rod, coiled material, tobacco, cotton, paper etc.Detected object is made uniform motion usually, utilizes one or more line-scan digital camera to its continuous sweep line by line, to reach the purpose that body surface is evenly detected.Under the situation of the very big visual field of needs or very high degree of precision, often use repeatedly excitation line array camera of excitation apparatus, repeatedly take pictures, again several captured " bar " shape images are merged, thereby generate complete subject image.
Because the image of line-scan digital camera on each constantly can only a certain line of shot object.In the practice,, be combined into the complete image of object often by continuous shot object each image constantly through camera.But if movement velocity and the design rate of object when the line-scan digital camera is inconsistent, then being out of shape can appear in the captured image of line-scan digital camera, as Fig. 1~shown in Figure 4.
In order to address this problem, people have successively attempted the multiple technologies solution.For example Gao Junchai, Lei Zhiyong and Wang Zemin are in " laser and optoelectronics progress " paper " image rectification of line-scan digital camera " that the 47th the 9th phase of volume delivered in 2010, at in the high precision dimensional measurement of part, the image acquisition of linear array CCD camera and the stationary problem of part movement are studied.The method for synchronous that adopts servomotor and motion control card is analyzed, proposed to adopt the control method of common asynchronous moter and scrambler combination; Studied kinetic control system and camera and gathered relation between the line rate, designed synchronous control mode based on step-length such as non-.According to the characteristics of line-scan digital camera image acquisition, as spotting, extracted the diameter parameters of chip direction and direction of motion with the standard circular target, realized the demarcation of object-image relation and correction interpolation coefficient; Designed linear interpolation algorithm, can proofread and correct the target imaging of arbitrary shape.Experimental result shows that this method is simple, and cost is low, can proofread and correct line array CCD effectively because the stretcher strain that motion causes.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of deformation pattern geometric correction method at line-scan digital camera.
For realizing above-mentioned goal of the invention, the present invention adopts following technical scheme:
A kind of bearing calibration of line-scan digital camera image is characterized in that comprising the steps:
(1) in pending subject image, sets the demarcation thing;
(2) detect the frontier point of demarcating in the thing;
(3) find the solution the kinematic parameter of demarcating thing;
(4) according to the result of calculation of step (3), the corresponding point in the pending subject image are carried out affined transformation, the image that is obtained after the conversion is correcting image.
Wherein more preferably, in described step (1), described demarcation thing is the circular object of determining in pending subject image.
Described demarcation thing is positioned at the central area of described subject image.
In the described step (2), the quantity of described frontier point is no less than 5.
Described step (3) comprises following substep:
(31) by (x of all frontier points
py
py
p 2x
py
p1) and x
p 2Form system of linear equations, under the situation of equation quantity, use least square method to find the solution more than unknown number quantity:
Wherein, (x
p, y
p) be the coordinate of frontier point, 1,2 ... n represents the sequence number of each frontier point;
(32) calculate the kinematic parameter of demarcating thing:
Wherein, c
1Be x direction speed, c
2Be y direction speed, d
1Be the central point of x direction, d
2Central point for the y direction.
In the described step (4), the c that calculates according to described step (3)
1, c
2, d
1And d
2Numerical value, carry out affined transformation to the corresponding point in the image:
Wherein, (x
q, y
q) be the corresponding point coordinate after the conversion.
Method for correcting image provided by the present invention has realized that by mathematic(al) manipulation operation is simple to the geometry correction of the captured deformation pattern of line-scan digital camera, and calibration result is good; Especially be fit to the use that combines of the image processing method of search frontier point automatically.
Description of drawings
The present invention is described in further detail below in conjunction with the drawings and specific embodiments.
Fig. 1 is as the circular object synoptic diagram of demarcating thing;
Fig. 2 is the demarcation thing synoptic diagram that exists x direction mistake to cut;
Fig. 3 is the demarcation thing synoptic diagram that exists the y direction to stretch;
Fig. 4 cuts the demarcation thing synoptic diagram that stretches with the y direction for there being x direction mistake simultaneously;
Fig. 5 (a) and Fig. 5 (b) are respectively and adopt this method for correcting image to proofread and correct an example of the coin image of front and back;
Fig. 6 (a) and Fig. 6 (b) are respectively and adopt this method for correcting image to proofread and correct another example of the coin image of front and back.
Embodiment
Method for correcting image provided by the present invention can carry out geometry correction to the captured subject image of line-scan digital camera, thereby recovers the original true picture of object.Basic implementation step to this method for correcting image is described in detail below.
Step 1: in pending subject image, set and demarcate thing
Geometry deformation takes place in line-scan digital camera captured subject image easily, and the circular geometry deformation degree that can embody all angles, therefore, the present invention at first determines a circular object as the demarcation thing in pending subject image, and hypothesis (x
c, y
c) be the ideal position (as the central area of image) of employed demarcation thing in pending subject image, radius is r, the point (x on the then desirable circle
q, y
q) satisfy:
(x
q-x
c)
2+(y
q-y
c)
2=r
2 (1)
Step 2: detect the frontier point of demarcating in the thing
In this step, search for the frontier point of demarcating thing automatically or manually.Generally speaking, the quantity that should guarantee frontier point is no less than 5.
For detected each frontier point, suppose that its coordinate is (x
p, y
p), captured subject image has respectively that x direction mistake is cut, the y direction stretches and the conversion of translation, as Fig. 2, Fig. 3 and shown in Figure 4.Like this, each frontier point (x on the demarcation thing
p, y
p) all with ideal circle (ideal image after promptly proofreading and correct) on a frontier point (x
q, y
q) corresponding, so the establishment of formula (2) is arranged:
Wherein, c
1Be x direction speed, c
2Be y direction speed, d
1Be the central point of x direction, d
2Central point for the y direction.Bring formula (2) into formula (1), obtain:
(x
p+c
1y
p+d
1-x
c)
2+(c
2y
p+d
p-y
c)
2=r
2
That is:
Order:
Get (the x of all frontier points
py
py
p 2x
py
p1) and x
p 2Form system of linear equations, can obtain least square solution
Step 3: find the solution the kinematic parameter of demarcating thing
This step comprises following substep:
(1) finds the solution following system of equations, under the situation of equation quantity, use least square method to find the solution, so that make the result more stable more than unknown number quantity.
Wherein, 1,2 ... n represents the sequence number of the corresponding point that search obtains from pending subject image.
(2) calculate the kinematic parameter of demarcating thing.These kinematic parameters comprise x direction speed c
1, y direction speed c
2, x direction central point d
1With y direction central point d
2, wherein:
Step 4:, the corresponding point in the pending subject image are carried out affined transformation according to the result of calculation of step 3.
Before address, demarcate each the frontier point (x on the thing
p, y
p) all with proofread and correct after ideal image on a frontier point (x
q, y
q) corresponding, the geometric transformation between them concerns as the formula (2):
Obtaining under many situations the line-scan digital camera image after can obtaining to proofread and correct by affined transformation to the relation of the geometric transformation between the frontier point.Wherein, can adopt similar step to obtain corresponding geometric transformation relation, thereby realize affined transformation for other point of non-frontier point in the image.After each corresponding point in the image were carried out affined transformation respectively, the image of being made up of these corresponding point was the due true picture of the captured object of line-scan digital camera.
Fig. 5 (a) and Fig. 5 (b) are respectively and adopt this method for correcting image to proofread and correct an example of the coin image of front and back; Fig. 6 (a) and Fig. 6 (b) are respectively and adopt this method for correcting image to proofread and correct another example of the coin image of front and back.From these two groups correction results as can be seen, no matter be the coin image that any mode is twisted, adopt this method for correcting image all can obtain preferable geometry correction effect.
It is emphasized that method for correcting image provided by the present invention proofreaies and correct as benchmark with a circular frontier point of demarcating thing, 5 frontier points of minimum needs just can be proofreaied and correct, but the quantity of frontier point is many more, and the effect of correction is good more.Under a fairly large number of situation of frontier point, even there is error in the search to frontier point, even the minority frontier point be marked with mistake, can the result who proofread and correct not produced a very large impact, so this method for correcting image is well suited for the use that combines of the image processing method of search frontier point automatically yet.
More than the bearing calibration of line-scan digital camera image provided by the present invention is had been described in detail.To those skilled in the art, any conspicuous change of under the prerequisite that does not deviate from connotation of the present invention it being done all will constitute to infringement of patent right of the present invention, with corresponding legal responsibilities.
Claims (6)
1. the bearing calibration of a line-scan digital camera image is characterized in that comprising the steps:
(1) in pending subject image, sets the demarcation thing;
(2) detect the frontier point of demarcating in the thing;
(3) find the solution the kinematic parameter of demarcating thing;
(4) according to the result of calculation of step (3), the corresponding point in the pending subject image are carried out affined transformation, the image that is obtained after the conversion is correcting image.
2. the bearing calibration of line-scan digital camera image as claimed in claim 1 is characterized in that:
In the described step (1), described demarcation thing is the circular object of determining in pending subject image.
3. the bearing calibration of line-scan digital camera image as claimed in claim 1 is characterized in that:
In the described step (1), described demarcation thing is positioned at the central area of described subject image.
4. the bearing calibration of line-scan digital camera image as claimed in claim 1 is characterized in that:
In the described step (2), the quantity of described frontier point is no less than 5.
5. the bearing calibration of line-scan digital camera image as claimed in claim 1 is characterized in that:
Described step (3) comprises following substep:
(31) by (x of all frontier points
py
py
p 2x
py
p1) and x
p 2Form system of linear equations, under the situation of equation quantity, use least square method to find the solution more than unknown number quantity:
Wherein, (x
p, y
p) be the coordinate of frontier point, 1,2 ... n represents the sequence number of each frontier point;
(32) calculate the kinematic parameter of demarcating thing:
Wherein, c
1Be x direction speed, c
2Be y direction speed, d
1Be the central point of x direction, d
2Central point for the y direction.
6. the bearing calibration of line-scan digital camera image as claimed in claim 5 is characterized in that:
In the described step (4), the c that calculates according to described step (3)
1, c
2, d
1And d
2Numerical value, carry out affined transformation to the corresponding point in the image:
Wherein, (x
q, y
q) be the corresponding point coordinate after the conversion.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010590591.4A CN102096899B (en) | 2010-12-15 | 2010-12-15 | Correction method of linear array camera image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010590591.4A CN102096899B (en) | 2010-12-15 | 2010-12-15 | Correction method of linear array camera image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102096899A true CN102096899A (en) | 2011-06-15 |
CN102096899B CN102096899B (en) | 2014-08-06 |
Family
ID=44129981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010590591.4A Active CN102096899B (en) | 2010-12-15 | 2010-12-15 | Correction method of linear array camera image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102096899B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103256919A (en) * | 2012-02-16 | 2013-08-21 | 维嘉数控科技(苏州)有限公司 | Correction method of angle inclination of linear array camera |
CN105701809A (en) * | 2016-01-11 | 2016-06-22 | 宁波江丰生物信息技术有限公司 | Flat-field correction method based on line-scan digital camera scanning |
CN105809652A (en) * | 2014-12-29 | 2016-07-27 | 上海微电子装备有限公司 | Linear array camera attitude calibration device and method |
CN108428252A (en) * | 2018-03-14 | 2018-08-21 | 河南科技大学 | A kind of single line array camera distortion scaling method |
CN110415192A (en) * | 2019-07-31 | 2019-11-05 | 广州运达智能科技有限公司 | A kind of track train linear array camera image distortion correction method |
CN110689537A (en) * | 2019-10-08 | 2020-01-14 | 凌云光技术集团有限责任公司 | Method and system for judging whether line-scan camera is used for acquiring images at constant speed |
CN115138592A (en) * | 2021-03-30 | 2022-10-04 | 中国科学院长春光学精密机械与物理研究所 | Sorting device parameter calibration method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0528255A (en) * | 1991-07-18 | 1993-02-05 | Canon Inc | Geometry transformation system for picture |
CN1671176A (en) * | 2004-03-19 | 2005-09-21 | 卡西欧计算机株式会社 | Image processing apparatus for correcting distortion of image and image shooting apparatus for correcting distortion of shot image |
CN1684491A (en) * | 2004-02-27 | 2005-10-19 | 卡西欧计算机株式会社 | Image processing device and method, image projection apparatus, and program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102004015415A1 (en) * | 2004-03-26 | 2005-10-13 | Putzmeister Ag | Device and method for controlling a two-cylinder slurry pump |
-
2010
- 2010-12-15 CN CN201010590591.4A patent/CN102096899B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0528255A (en) * | 1991-07-18 | 1993-02-05 | Canon Inc | Geometry transformation system for picture |
CN1684491A (en) * | 2004-02-27 | 2005-10-19 | 卡西欧计算机株式会社 | Image processing device and method, image projection apparatus, and program |
CN1671176A (en) * | 2004-03-19 | 2005-09-21 | 卡西欧计算机株式会社 | Image processing apparatus for correcting distortion of image and image shooting apparatus for correcting distortion of shot image |
Non-Patent Citations (5)
Title |
---|
《激光与光电子学进展》 20100910 高俊钗等 "线阵相机的图像校正" 第97-101页 1-6 第47卷, 第9期 * |
《西北大学学报(自然科学版)》 20060625 贾小勇等 "最小二乘法的创立及其思想方法" 第507-511页 1-6 第36卷, 第3期 * |
贾小勇等: ""最小二乘法的创立及其思想方法"", 《西北大学学报(自然科学版)》, vol. 36, no. 3, 25 June 2006 (2006-06-25), pages 507 - 511 * |
陈书海等: "《实用数字图像处理》", 30 June 2005, article "几何运算", pages: 374-378 * |
高俊钗等: ""线阵相机的图像校正"", 《激光与光电子学进展》, vol. 47, no. 9, 10 September 2010 (2010-09-10), pages 97 - 101 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103256919A (en) * | 2012-02-16 | 2013-08-21 | 维嘉数控科技(苏州)有限公司 | Correction method of angle inclination of linear array camera |
CN103256919B (en) * | 2012-02-16 | 2016-01-27 | 维嘉数控科技(苏州)有限公司 | A kind of bearing calibration of line-scan digital camera angular slope |
CN105809652A (en) * | 2014-12-29 | 2016-07-27 | 上海微电子装备有限公司 | Linear array camera attitude calibration device and method |
CN105809652B (en) * | 2014-12-29 | 2019-07-23 | 上海微电子装备(集团)股份有限公司 | A kind of line-scan digital camera posture caliberating device and method |
CN105701809A (en) * | 2016-01-11 | 2016-06-22 | 宁波江丰生物信息技术有限公司 | Flat-field correction method based on line-scan digital camera scanning |
CN105701809B (en) * | 2016-01-11 | 2018-09-14 | 宁波江丰生物信息技术有限公司 | A kind of method for correcting flat field based on line-scan digital camera scanning |
CN108428252A (en) * | 2018-03-14 | 2018-08-21 | 河南科技大学 | A kind of single line array camera distortion scaling method |
CN110415192A (en) * | 2019-07-31 | 2019-11-05 | 广州运达智能科技有限公司 | A kind of track train linear array camera image distortion correction method |
CN110689537A (en) * | 2019-10-08 | 2020-01-14 | 凌云光技术集团有限责任公司 | Method and system for judging whether line-scan camera is used for acquiring images at constant speed |
CN110689537B (en) * | 2019-10-08 | 2022-05-03 | 凌云光技术股份有限公司 | Method and system for judging whether line-scan camera is used for acquiring images at constant speed |
CN115138592A (en) * | 2021-03-30 | 2022-10-04 | 中国科学院长春光学精密机械与物理研究所 | Sorting device parameter calibration method |
Also Published As
Publication number | Publication date |
---|---|
CN102096899B (en) | 2014-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102096899B (en) | Correction method of linear array camera image | |
CN107993258B (en) | Image registration method and device | |
CN102589516B (en) | Dynamic distance measuring system based on binocular line scan cameras | |
CN108765480A (en) | Advanced treatment device | |
CN107851196B (en) | Image pattern matching method and device | |
EP2111046A3 (en) | Image processing apparatus and image processing method | |
CN104760812B (en) | Product real-time positioning system and method on conveyer belt based on monocular vision | |
CN104089697A (en) | Real-time online visual vibration measurement method based on thread pool concurrent technology | |
EP2306399A3 (en) | Image processing method, apparatus and system | |
CN111462198B (en) | Multi-mode image registration method with scale, rotation and radiation invariance | |
CN106289532A (en) | The temperature extracting method of a kind of thermal-induced imagery and device | |
CN105654423A (en) | Area-based remote sensing image registration method | |
KR20170050448A (en) | Method and apparatus for detecting object on image | |
CN114820563A (en) | Industrial component size estimation method and system based on multi-view stereo vision | |
CN107369179B (en) | High-precision image positioning method | |
CN104048601A (en) | Integrally-imaging image mapping method based on coordinate transformation | |
CN105740869A (en) | Square operator edge extraction method and system based on multiple scales and multiple resolutions | |
Wong et al. | A study of different unwarping methods for omnidirectional imaging | |
CN106949881B (en) | A kind of mobile robot fast vision localization method | |
CN108459558A (en) | A kind of positioning measuring device and locating measurement method | |
CN101794373B (en) | Application method of rotating and sub-pixel matching algorithm to machine vision system | |
JP7296750B2 (en) | IMAGING DEVICE AND CONTROL METHOD THEREOF, PROGRAM, STORAGE MEDIUM | |
CN107527319A (en) | Image shrinking method and device | |
CN107113378B (en) | Scene reconstruction by combining images | |
CN103927757B (en) | Target object stereo vision three-dimensional analysis and processing method based on cascade sampling |
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 |