CN112767262A - Image distortion correction processing method - Google Patents
Image distortion correction processing method Download PDFInfo
- Publication number
- CN112767262A CN112767262A CN202110015444.2A CN202110015444A CN112767262A CN 112767262 A CN112767262 A CN 112767262A CN 202110015444 A CN202110015444 A CN 202110015444A CN 112767262 A CN112767262 A CN 112767262A
- Authority
- CN
- China
- Prior art keywords
- image
- perspective distortion
- distortion correction
- plane
- target plate
- 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.)
- Pending
Links
- 238000012937 correction Methods 0.000 title claims abstract description 48
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000003384 imaging method Methods 0.000 claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 8
- 238000012545 processing Methods 0.000 claims abstract description 6
- 230000009466 transformation Effects 0.000 claims description 17
- PCTMTFRHKVHKIS-BMFZQQSSSA-N (1s,3r,4e,6e,8e,10e,12e,14e,16e,18s,19r,20r,21s,25r,27r,30r,31r,33s,35r,37s,38r)-3-[(2r,3s,4s,5s,6r)-4-amino-3,5-dihydroxy-6-methyloxan-2-yl]oxy-19,25,27,30,31,33,35,37-octahydroxy-18,20,21-trimethyl-23-oxo-22,39-dioxabicyclo[33.3.1]nonatriaconta-4,6,8,10 Chemical compound C1C=C2C[C@@H](OS(O)(=O)=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H]([C@H](C)CCCC(C)C)[C@@]1(C)CC2.O[C@H]1[C@@H](N)[C@H](O)[C@@H](C)O[C@H]1O[C@H]1/C=C/C=C/C=C/C=C/C=C/C=C/C=C/[C@H](C)[C@@H](O)[C@@H](C)[C@H](C)OC(=O)C[C@H](O)C[C@H](O)CC[C@@H](O)[C@H](O)C[C@H](O)C[C@](O)(C[C@H](O)[C@H]2C(O)=O)O[C@H]2C1 PCTMTFRHKVHKIS-BMFZQQSSSA-N 0.000 claims description 6
- 239000011159 matrix material Substances 0.000 claims description 3
- 238000013519 translation Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- G06T5/80—
Abstract
The invention discloses an image distortion correction processing method, which comprises the following processing steps: s1: perspective distortion imaging principle; in the image imaging process, an object plane where the original target plate is located is not parallel to an image plane where the distorted target plate is located, wherein the image plane is collected by a camera, so that perspective distortion is generated; s2: perspective distortion correction model; perspective distortion correction is to re-project the image onto a new viewing plane; s3: correcting perspective distortion; establishing a relation between a perspective distortion image and a theoretical light spot target plate image through a perspective distortion correction model, and solving the light spot target plate image after perspective distortion correction; can be convenient for rectify perspective distortion and become like the pattern, reduced the correction degree of difficulty to perspective distortion and become like the pattern, and then be convenient for the user of service to watch the pattern that perspective distortion imaged, reduced the pattern observation degree of difficulty that perspective distortion imaged, solved among the prior art be not convenient for rectify perspective distortion imaging pattern.
Description
Technical Field
The invention relates to the technical field of image processing, in particular to an image distortion correction processing method
Background
Because the normal vector of the target plate is not parallel to the optical axis of the camera, a certain included angle exists between the normal vector of the target plate and the optical axis of the camera, the acquired target plate image has perspective distortion to a certain degree;
when the camera is close to the target plate, the imaging of the target plate is large, and the perspective distortion has a large influence on the final measurement precision.
Disclosure of Invention
The invention provides an image distortion correction processing method, which can effectively solve the problem that the perspective distortion has great influence on the final measurement precision when the imaging of a target plate is large when a camera is close to the target plate, which is proposed in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: an image distortion correction processing method includes the following processing steps:
s1: perspective distortion imaging principle; in the image imaging process, an object plane where the original target plate is located is not parallel to an image plane where the distorted target plate is located, wherein the image plane is collected by a camera, so that perspective distortion is generated;
s2: perspective distortion correction model; perspective distortion correction is to re-project the image onto a new viewing plane;
s3: correcting perspective distortion; and establishing a relation between the perspective distortion image and the theoretical light spot target plate image through a perspective distortion correction model, so as to solve the light spot target plate image after perspective distortion correction.
Preferably, according to the principle in S1, the plane ABCD represents an object plane where the original target board is located, the plane a 'B' C 'D' represents an image plane where the distorted target board is located, and the spatial coordinates of four points of the plane ABCD are a (x) respectively1,y1)、B(x2,y2)C(x3,y3) And D (x)4,y4) The four points of the plane A ' B ' C ' D ' have pixel coordinates A ' (x)1',y1')、B'(x'2,y'2)、C'(x'3,y'3) And D '(x'4,y'4)。
Preferably, the correction transformation principle in S2 is:
in the formula, x and y are original light spot target plate images, u and v are light spot target plate images after perspective distortion correction, and transformation matrixThe four parts can be split, wherein,representing a linear transformation, [ a ]31a32]Representing translation transformation, [ a ]13a23]TRepresenting a perspective transformation. In general, an image is not a parallelogram after transformation, and rewriting can result in:
wherein (x, y), (u, v) represent the image coordinates before and after perspective distortion correction, respectively.
Preferably, the correction principle in S2 is: the following equation sets are established for control points (A, A '), (B, B'), (C, C ') and (D, D'):
compared with the prior art, the invention has the beneficial effects that:
1. can be convenient for rectify perspective distortion and become like the pattern, reduced the correction degree of difficulty to perspective distortion and become like the pattern, and then be convenient for the user of service to watch the pattern that perspective distortion imaged, reduced the pattern observation degree of difficulty that perspective distortion imaged, solved among the prior art be not convenient for rectify perspective distortion imaging pattern.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
In the drawings:
FIG. 1 is a flow chart of the steps of the present invention;
FIG. 2 is a schematic diagram of imaging of a target plate of the present invention;
FIG. 3 is a perspective distortion correction flow diagram of the present invention;
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Example (b): as shown in fig. 1 to 3, the present invention provides a technical solution, a method for processing image distortion correction, comprising the following processing steps:
s1: perspective distortion imaging principle; in the image imaging process, an object plane where the original target plate is located is not parallel to an image plane where the distorted target plate is located, wherein the image plane is collected by a camera, so that perspective distortion is generated;
s2: perspective distortion correction model; perspective distortion correction is to re-project the image onto a new viewing plane;
s3: correcting perspective distortion; and establishing a relation between the perspective distortion image and the theoretical light spot target plate image through a perspective distortion correction model, so as to solve the light spot target plate image after perspective distortion correction.
S1, wherein the plane ABCD represents the object plane of the original target plate, the plane A 'B' C 'D' represents the image plane of the distorted target plate, and the space coordinates of the four points of the plane ABCD are A (x)1,y1)、B(x2,y2)C(x3,y3) And D (x)4,y4) The four points of the plane A ' B ' C ' D ' have pixel coordinates A ' (x)1',y1')、B'(x'2,y'2)、C'(x'3,y'3) And D '(x'4,y'4)。
Correction transformation principle in S2:
in the formula, x and y are original light spot target plate images, u and v are light spot target plate images after perspective distortion correction, and transformation matrixThe four parts can be split, wherein,representing a linear transformation, [ a ]31a32]Representing translation transformation, [ a ]13a23]TRepresenting a perspective transformation. In general, an image is not a parallelogram after transformation, and rewriting can result in:
wherein (x, y), (u, v) represent the image coordinates before and after perspective distortion correction, respectively.
Correction principle in S2: the following equation sets are established for control points (A, A '), (B, B'), (C, C ') and (D, D'):
from the above formula, a11,K,a23And then, completing distortion correction of the target plate image, selecting the upper left corner point of the target plate in the original image as a reference in order to ensure that the size of the facula target plate image after perspective distortion correction is not zoomed compared with the actual image, solving the corresponding real size of the target plate in the image by using a pinhole imaging principle, and obtaining a theoretical non-distortion angular point according to the position relation of the four points, so that the four reference points for obtaining the target plate image have important significance for perspective distortion correction.
The working principle and the using process of the invention are as follows: in the image imaging process, the object plane of the original target plate is not parallel to the image plane of the distorted target plate acquired by the camera, so that perspective distortion is generated, the perspective distortion correction is to re-project the image onto a new viewing plane, the relationship between the perspective distortion image and the theoretical facula target plate image is established through a perspective distortion correction model, and the facula target plate image after the perspective distortion correction is solved,
finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (4)
1. An image distortion correction processing method characterized by: the method comprises the following processing steps:
s1: perspective distortion imaging principle; in the image imaging process, an object plane where the original target plate is located is not parallel to an image plane where the distorted target plate is located, wherein the image plane is collected by a camera, so that perspective distortion is generated;
s2: perspective distortion correction model; perspective distortion correction is to re-project the image onto a new viewing plane;
s3: correcting perspective distortion; and establishing a relation between the perspective distortion image and the theoretical light spot target plate image through a perspective distortion correction model, so as to solve the light spot target plate image after perspective distortion correction.
2. The image distortion correction processing method according to claim 1, wherein in said principle of S1, the plane ABCD represents an object plane where the original target board is located, the plane a 'B' C 'D' represents an image plane where the distorted target board is located, and spatial coordinates of four points of the plane ABCD are a (x) respectively1,y1)、B(x2,y2)C(x3,y3) And D (x)4,y4) The pixel coordinates of four points of the plane A 'B' C 'D' are respectively A '(x'1,y′1)、B'(x′2,y′2)、C'(x′3,y′3) And D '(x'4,y′4)。
3. An image distortion correction processing method according to claim 1, wherein the correction transform principle in S2:
in the formula, x and y are original light spot target plate images, u and v are light spot target plate images after perspective distortion correction, and transformation matrixThe four parts can be split, wherein,representing a linear transformation, [ a ]31 a32]Representing translation transformation, [ a ]13 a23]TRepresenting a perspective transformation. In general, an image is not a parallelogram after transformation, and rewriting can result in:
wherein (x, y), (u, v) represent the image coordinates before and after perspective distortion correction, respectively.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110015444.2A CN112767262A (en) | 2021-01-06 | 2021-01-06 | Image distortion correction processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110015444.2A CN112767262A (en) | 2021-01-06 | 2021-01-06 | Image distortion correction processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112767262A true CN112767262A (en) | 2021-05-07 |
Family
ID=75700236
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110015444.2A Pending CN112767262A (en) | 2021-01-06 | 2021-01-06 | Image distortion correction processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112767262A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120114262A1 (en) * | 2010-11-09 | 2012-05-10 | Chi-Chang Yu | Image correction method and related image correction system thereof |
CN103729841A (en) * | 2013-12-18 | 2014-04-16 | 同济大学 | Camera distortion correcting method based on square target model and perspective projection |
KR101589167B1 (en) * | 2015-02-09 | 2016-01-27 | 동의대학교 산학협력단 | System and Method for Correcting Perspective Distortion Image Using Depth Information |
CN105954960A (en) * | 2016-04-29 | 2016-09-21 | 广东美的制冷设备有限公司 | Spherical surface projection display method, spherical surface projection display system and household electrical appliance |
CN106600561A (en) * | 2016-12-22 | 2017-04-26 | 中国人民解放军第三军医大学第三附属医院 | Aerial image perspective distortion automatic correction method based on projection mapping |
CN107169494A (en) * | 2017-06-01 | 2017-09-15 | 中国人民解放军国防科学技术大学 | License plate image segmentation bearing calibration based on handheld terminal |
CN108492335A (en) * | 2018-03-27 | 2018-09-04 | 长春理工大学 | A kind of double camera perspective distortion bearing calibration and system |
CN110060200A (en) * | 2019-03-18 | 2019-07-26 | 阿里巴巴集团控股有限公司 | Perspective image transform method, device and equipment |
-
2021
- 2021-01-06 CN CN202110015444.2A patent/CN112767262A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120114262A1 (en) * | 2010-11-09 | 2012-05-10 | Chi-Chang Yu | Image correction method and related image correction system thereof |
CN103729841A (en) * | 2013-12-18 | 2014-04-16 | 同济大学 | Camera distortion correcting method based on square target model and perspective projection |
KR101589167B1 (en) * | 2015-02-09 | 2016-01-27 | 동의대학교 산학협력단 | System and Method for Correcting Perspective Distortion Image Using Depth Information |
CN105954960A (en) * | 2016-04-29 | 2016-09-21 | 广东美的制冷设备有限公司 | Spherical surface projection display method, spherical surface projection display system and household electrical appliance |
CN106600561A (en) * | 2016-12-22 | 2017-04-26 | 中国人民解放军第三军医大学第三附属医院 | Aerial image perspective distortion automatic correction method based on projection mapping |
CN107169494A (en) * | 2017-06-01 | 2017-09-15 | 中国人民解放军国防科学技术大学 | License plate image segmentation bearing calibration based on handheld terminal |
CN108492335A (en) * | 2018-03-27 | 2018-09-04 | 长春理工大学 | A kind of double camera perspective distortion bearing calibration and system |
CN110060200A (en) * | 2019-03-18 | 2019-07-26 | 阿里巴巴集团控股有限公司 | Perspective image transform method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109454634B (en) | Robot hand-eye calibration method based on plane image recognition | |
CN106875339B (en) | Fisheye image splicing method based on strip-shaped calibration plate | |
CN109272570B (en) | Space point three-dimensional coordinate solving method based on stereoscopic vision mathematical model | |
CN111243033B (en) | Method for optimizing external parameters of binocular camera | |
CN113160339B (en) | Projector calibration method based on Molaque law | |
WO2021208933A1 (en) | Image rectification method and apparatus for camera | |
CN110782394A (en) | Panoramic video rapid splicing method and system | |
JP2022528659A (en) | Projector keystone correction methods, devices, systems and readable storage media | |
CN110738608B (en) | Plane image correction method and system | |
CN110136068B (en) | Sound membrane dome assembly system based on position calibration between bilateral telecentric lens cameras | |
CN113360964A (en) | Convergence type binocular vision guided robot positioning method under high dynamic range | |
CN112734860A (en) | Arc-screen prior information-based pixel-by-pixel mapping projection geometric correction method | |
CN114359405A (en) | Calibration method of off-axis Samm 3D line laser camera | |
CN114820817A (en) | Calibration method and three-dimensional reconstruction method based on high-precision line laser 3D camera | |
CN110942475B (en) | Ultraviolet and visible light image fusion system and rapid image registration method | |
CN112652019A (en) | Binocular vision three-dimensional positioning method | |
CN112767262A (en) | Image distortion correction processing method | |
CN112258581A (en) | On-site calibration method for multi-fish glasses head panoramic camera | |
CN111047651B (en) | Method for correcting distorted image | |
CN113689339B (en) | Image stitching method and device | |
CN115439541A (en) | Glass orientation calibration system and method for refraction imaging system | |
CN112465914B (en) | Camera array calibration method based on non-common view field | |
CN113066131A (en) | Method for quickly calibrating camera internal parameters | |
CN110189263B (en) | Large-view-field head-mounted display equipment distortion correction method based on multi-angle sampling | |
CN115797460B (en) | Underwater double-target setting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |