CN113327202A - Image distortion correction method and application thereof - Google Patents

Image distortion correction method and application thereof Download PDF

Info

Publication number
CN113327202A
CN113327202A CN202110330313.3A CN202110330313A CN113327202A CN 113327202 A CN113327202 A CN 113327202A CN 202110330313 A CN202110330313 A CN 202110330313A CN 113327202 A CN113327202 A CN 113327202A
Authority
CN
China
Prior art keywords
image
data set
image distortion
correcting
obtaining
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
Application number
CN202110330313.3A
Other languages
Chinese (zh)
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.)
Suzhou Microclear Medical Instruments Co ltd
Original Assignee
Suzhou Microclear Medical Instruments Co ltd
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 Suzhou Microclear Medical Instruments Co ltd filed Critical Suzhou Microclear Medical Instruments Co ltd
Priority to CN202110330313.3A priority Critical patent/CN113327202A/en
Publication of CN113327202A publication Critical patent/CN113327202A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • G06T5/80
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10072Tomographic images
    • G06T2207/10101Optical tomography; Optical coherence tomography [OCT]

Abstract

The invention relates to the field of imaging systems, in particular to a method for correcting image distortion and application thereof. The first aspect of the present invention discloses a method for correcting image distortion, the method for correcting image distortion in the present invention includes the steps of: s1: determining the number n of image scanning points; s2: acquiring a voltage value and an image height value of each image scanning point, recording as a first data group, wherein the first data group is (x)1,y1)、(x2,y2)、(x3,y3)…(xn,yn) (ii) a Obtaining y = f (x) from the first data set; wherein, the voltage value is x, and the image height value is y; wherein y = f (x) is a non-linear function; s3: performing linear compensation correction on the y = f (x) to obtain a second data group; s4: and inputting the second data set into a control system to obtain a corrected image.

Description

Image distortion correction method and application thereof
Technical Field
The invention relates to the field of imaging systems, in particular to a method for correcting image distortion and application thereof.
Background
At present, more and more apparatuses are used for imaging by laser scanning, and image distortion aiming at laser scanning imaging becomes a common problem. Different imaging systems cause various image distortion problems due to different reasons, and analyzing and correcting the reasons of the distortion generated by the imaging systems is a very important image distortion correcting means. The main causes of the distortion include the following: the distortion of the optical camera, the image distortion caused by the fundus retina curved surface during imaging, and the image distortion caused by the change of the scanning speed of the transverse longitudinal galvanometer, wherein the distortion causes the distortion between the image and the real object. In the imaging system, because the angular speed scanned by the galvanometer is unchanged, but the retina is a curved surface, when incident light is irradiated at the center and the edge of the retina, the optical path is unequal, and an optical path difference exists. The optical path difference causes different linear velocities during scanning of the galvanometer, so that the image is distorted.
In the prior art, distorted images are mainly corrected by using an image processing algorithm. For example checkerboard based image distortion correction: the method comprises the steps of shooting a certain number of checkerboard square grids with known widths at different positions and different angles, extracting angular point coordinates of the checkerboard squares, and calculating an internal reference matrix and a distortion coefficient according to the angular point coordinates. These prior art processing methods are all complex and the processing results depend on algorithms.
In view of the above problems, it is desirable to provide a method for correcting image distortion to solve the above technical problems.
Disclosure of Invention
The first aspect of the present invention discloses a method for correcting image distortion, the method for correcting image distortion in the present invention includes the steps of:
s1: determining the number n of image scanning points;
s2: acquiring a voltage value and an image height value of each image scanning point, recording as a first data group, wherein the first data group is (x)1,y1)、(x2,y2)、(x3,y3)…(xn,yn) (ii) a Obtaining y ═ f (x) from the first data set; wherein, the voltage value is x, and the image height value is y; wherein y ═ f (x) is a nonlinear function;
s3: performing linear compensation correction on the y ═ f (x), and obtaining a second data set;
s4: and inputting the second data set into a control system to obtain a corrected image.
In a preferred embodiment, the specific steps of S3 are as follows: obtaining the inverse function of y ═ f (x), and recording x ═ f-1(y) linear assignment of y, respectively denoted as y11、y22、y33…ynn(ii) a According to x ═ f-1(y) obtaining x11、x22、x33…xnnObtaining a second data set respectively as (x)11,y11)、(x22,y22)、(x33,y33)…(xnn,ynn) (ii) a The second data set is a corrected voltage value and an image height value.
In a preferred embodiment, the second data set is stored in the control system, and in operation, the control system may retrieve the second data set directly to obtain the corrected image.
In a preferred embodiment, the specific steps of S3 are as follows: get y ═ f1(x),y=f1(x) Is a linear variation; and carrying out linear assignment on y, and respectively recording as y111、y222、y333…ynnn(ii) a According to y ═ f1(x) Respectively find x111、x222、x333…xnnnObtaining a second data set respectively as (x)111,y111)、(x222,y222)、(x333,y333)…(xnnn,ynnn) (ii) a The second data set is a corrected voltage value and an image height value.
In a second aspect of the invention, an optical coherence tomography apparatus is disclosed, which implements the above-described method for correcting image distortion.
A third aspect of the invention discloses a confocal laser fundus imager that implements the above-described method of correcting image distortion.
A fourth aspect of the present invention discloses a fundus scanning system that implements the above-described method for correcting image distortion.
A fifth aspect of the present invention discloses a fundus camera that implements the above-described method for correcting image distortion.
In a fifth aspect of the present invention, a laser treatment apparatus is disclosed, which implements the above-mentioned method for correcting image distortion.
Compared with the prior art, the method for correcting the image distortion can solve the problem of the image distortion from a bottom hardware layer, avoids using a complex image processing algorithm in the traditional scheme, and simplifies the design of equipment.
Drawings
Fig. 1 is a flow chart of a method for correcting image distortion.
Reference numerals: 1-S1; 2-S2; 3-S3; 4-S4.
Detailed Description
In order to make the technical solution of the present invention clearer, the technical solution of the present invention is further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, a first aspect of the present invention discloses a method for correcting image distortion, which includes the following steps:
s1: determining the number n of image scanning points;
the term "number of image scanning points" refers to the number of pixels in the horizontal or vertical direction of the image.
In the invention, the number n of scanning points is not particularly limited, and the larger the value of the number n of scanning points is, the more favorable the correction of image distortion is; however, when the value of n is too large, the amount of data to be processed by the system is large.
S2: acquiring a voltage value and an image height value of each image scanning point, recording as a first data group, wherein the first data group is (x)1,y1)、(x2,y2)、(x3,y3)…(xn,yn) (ii) a Obtaining y ═ f (x) from the first data set; wherein, the voltage value is x, and the image height value is y; wherein y ═ f (x) is a nonlinear function;
the term "voltage value" refers to the rotation angle of the scanning galvanometer and the corresponding input voltage value.
The term "image height value" refers to the width of the scanned image.
For one image, a first data set, respectively (x), is obtained by optical fitting software1,y1)、(x2,y2)、(x3,y3)…(xn,yn) (ii) a Then performing function fitting on the first data set to obtain y ═ f (x); where y ═ f (x) is a nonlinear change due to: the scanning linear velocities of the galvanometers are different, so that certain image distortion is brought to the edge and the center of an image. Meanwhile, in practical processes, due to the curvature of the retina of the human eye and the aberration of the optical system, the distance between the X galvanometer and the Y galvanometer generates image distortion, so that Y ═ f (X) is a nonlinear change, and ideally, Y ═ f (X) is a linear change.
S3: performing linear compensation correction on the y ═ f (x), and obtaining a second data set;
in the above step S2, y ═ f (x) is a nonlinear change due to various reasons, that is, the image is distorted, and for eliminating the image distortion, those skilled in the art use an image processing algorithm to perform post-processing on the image to eliminate the distortion. For the scheme of the invention, technical innovation is carried out from a bottom hardware layer so as to eliminate the distortion condition. The invention conception of the invention is as follows: and (3) performing linear compensation based on the curve y ═ f (x) obtained by fitting to obtain a linearly-changed galvanometer voltage value, and further eliminating the distortion of the image from the bottom hardware layer.
In a preferred embodiment, the specific steps of S3 are as follows: obtaining the inverse function of y ═ f (x), and recording x ═ f-1(y) linear assignment of y, respectively denoted as y11、y22、y33…ynn(ii) a According to x ═ f-1(y) obtaining x11、x22、x33…xnnObtaining a second data set respectively as (x)11,y11)、(x22,y22)、(x33,y33)…(xnn,ynn) (ii) a The second data set is a corrected voltage value and an image height value.
In f (x), wherein x1、x2、x3…xnIs linearly varied, y1、y2、y3…ynFor non-linear changes, e.g. f (x) 6 x 10, obtained by optical fitting software during the course of the experiment-6x5-5*10-13x4+0.006x3+5*10-11x2+0.5577x,R21 is ═ 1; negating f (x) to obtain x ═ f-1(y) re-linearly assigning y, respectively denoted as y11、y22、y33…ynn(ii) a Again according to x ═ f-1(y) obtaining corresponding x11、x22、x33…xnnObtaining a second data set respectively as (x)11,y11)、(x22,y22)、(x33,y33)…(xnn,ynn) (ii) a The second data set is the corrected voltage value and the image height value. The function and the inverse function are symmetrical about y-x, and the corrected voltage value is changed linearly, so that image distortion is eliminated.
The formula (f), (x) is only an example, and the scope of the present invention is not limited to the formula as long as the inventive concept based on the present invention is equivalent to the present invention.
In a preferred embodiment, the second data set is stored in the control system, and in operation, the control system may retrieve the second data set directly to obtain the corrected image.
And the corrected second data group is stored in the control system, so that the workload in the operation process of the system can be reduced.
In another preferred embodiment, the specific step of S3 is: get y ═ f1(x),y=f1(x) Is a linear variation; and carrying out linear assignment on y, and respectively recording as y111、y222、y333…ynnn(ii) a According to y ═ f1(x) Respectively find x111、x222、x333…xnnnObtaining a second data set respectively as (x)111,y111)、(x222,y222)、(x333,y333)…(xnnn,ynnn) (ii) a The second data set is a corrected voltage value and an image height value.
Get y ═ f1(x),y=f1(x) Is a linear variation; expressed in the form of y-kx, for each mirror a fixed coefficient k, according to which y-f1(x) And carrying out linear assignment on y, and respectively recording as y111、y222、y333…ynnn(ii) a According to y ═ f1(x) Respectively find x111、x222、x333…xnnnObtaining a second data set respectively as (x)111,y111)、(x222,y222)、(x333,y333)…(xnnn,ynnn) (ii) a The second data set is a corrected voltage value and an image height value. In this embodiment, y ═ f (x) can be compensated to a linear function.
For the present invention, the linear function is not a strict linear function, and any linear or linear-like variation is within the scope of the present invention.
S4: and inputting the second data set into a control system to obtain a corrected image.
And inputting the corrected second data set into a control system and operating the system, so that a corrected image can be obtained.
In a preferred embodiment, the second data set is stored in the control system, and in operation, the control system may retrieve the second data set directly to obtain the corrected image.
And the corrected second data group is stored in the control system, so that the workload in the operation process of the system can be reduced.
In a second aspect of the invention, an optical coherence tomography apparatus is disclosed, which implements the above-described method for correcting image distortion.
A third aspect of the invention discloses a confocal laser fundus imager that implements the above-described method of correcting image distortion.
A fourth aspect of the present invention discloses a fundus scanning system that implements the above-described method for correcting image distortion.
A fifth aspect of the present invention discloses a fundus camera that implements the above-described method for correcting image distortion.
In a sixth aspect of the present invention, a laser treatment apparatus is disclosed, which implements the above-mentioned method for correcting image distortion.
In the present invention, the method for correcting image distortion can be applied to ophthalmic medical devices such as optical coherence tomography, confocal laser fundus imager, fundus camera, slit lamp, etc., and certainly, the method is not limited to the illustrated devices, and all the inventive concepts using the present invention fall within the scope of the present invention.
Compared with the prior art, the method for correcting the image distortion can solve the problem of the image distortion from a bottom hardware layer, avoids using a complex image processing algorithm in the traditional scheme, and simplifies the design of equipment.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for correcting image distortion, comprising the steps of:
s1: determining the number n of image scanning points;
s2: acquiring a voltage value and an image height value of each image scanning point, recording as a first data group, wherein the first data group is (x)1,y1)、(x2,y2)、(x3,y3)…(xn,yn) (ii) a Obtaining y ═ f (x) from the first data set; wherein, the voltage value is x, and the image height value is y; wherein y ═ f (x) is a nonlinear function;
s3: performing linear compensation correction on the y ═ f (x), and obtaining a second data set;
s4: and inputting the second data set into a control system to obtain a corrected image.
2. The method for correcting image distortion according to claim 1, wherein the step S3 includes: obtaining the inverse function of y ═ f (x), and recording x ═ f-1(y) linear assignment of y, respectively denoted as y11、y22、y33…ynn(ii) a According to x ═ f-1(y) obtaining x11、x22、x33…xnnObtaining a second data set respectively as (x)11,y11)、(x22,y22)、(x33,y33)…(xnn,ynn) (ii) a The second data set is a corrected voltage value and an image height value.
3. A method for correcting image distortion as claimed in claim 2, wherein said second data set is stored in a control system, and in operation, the control system can retrieve the second data set directly to obtain the corrected image.
4. The method for correcting image distortion according to claim 1, wherein the step S3 includes: get y ═ f1(x),y=f1(x) Is a linear variation; and carrying out linear assignment on y, and respectively recording as y111、y222、y333…ynnn(ii) a According to y ═ f1(x) Respectively find x111、x222、x333…xnnnObtaining a second data set respectively as (x)111,y111)、(x222,y222)、(x333,y333)…(xnnn,ynnn) (ii) a The secondThe data sets are corrected voltage values and image height values.
5. A method of correcting image distortion as claimed in claim 4, wherein said second data set is stored in a control system, and in operation, the control system can retrieve the second data set directly to obtain the corrected image.
6. An optical coherence tomography instrument which implements the method of image distortion correction of any one of claims 1 to 5.
7. A confocal laser fundus imager that implements the method of correcting image distortion according to any one of claims 1 to 5.
8. A fundus scanning system implementing the method of correcting image distortion according to any one of claims 1 to 5.
9. A fundus camera that implements the method for correcting image distortion according to any one of claims 1 to 5.
10. A laser treatment apparatus for carrying out the method for correcting an image distortion according to any one of claims 1 to 5.
CN202110330313.3A 2021-03-30 2021-03-30 Image distortion correction method and application thereof Pending CN113327202A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110330313.3A CN113327202A (en) 2021-03-30 2021-03-30 Image distortion correction method and application thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110330313.3A CN113327202A (en) 2021-03-30 2021-03-30 Image distortion correction method and application thereof

Publications (1)

Publication Number Publication Date
CN113327202A true CN113327202A (en) 2021-08-31

Family

ID=77414731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110330313.3A Pending CN113327202A (en) 2021-03-30 2021-03-30 Image distortion correction method and application thereof

Country Status (1)

Country Link
CN (1) CN113327202A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116309194A (en) * 2023-05-24 2023-06-23 广东麦特维逊医学研究发展有限公司 OCT image distortion correction method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116309194A (en) * 2023-05-24 2023-06-23 广东麦特维逊医学研究发展有限公司 OCT image distortion correction method
CN116309194B (en) * 2023-05-24 2023-08-08 广东麦特维逊医学研究发展有限公司 OCT image distortion correction method

Similar Documents

Publication Publication Date Title
RU2716843C1 (en) Digital correction of optical system aberrations
JP5315157B2 (en) Information processing apparatus, line noise reduction processing method, and program
RU2523965C2 (en) Image processing device, image capturing device and image processing method
EP2597421A1 (en) Stereo distance measurement apparatus and stereo distance measurement method
JP6484706B2 (en) Apparatus and method for recording images
JP2017526964A (en) Apparatus and method for recording images
JP2006518050A (en) Depth of focus extended microscopy
CN102422321B (en) Imaging device and image restoration method
CN111353958A (en) Image processing method, device and system
CN113327202A (en) Image distortion correction method and application thereof
CN109118439B (en) Cone beam CT deblurring method based on line integral
US10748252B2 (en) Method and device for image correction
JP2015166979A (en) Image processing method, image processing apparatus, imaging apparatus, and image processing program
JP6821526B2 (en) Image processing method, image processing device, imaging device, and program
JP7301601B2 (en) Image processing device, imaging device, lens device, image processing system, image processing method, and program
Molodij et al. Enhancing retinal images by extracting structural information
US11145033B2 (en) Method and device for image correction
CN111127371A (en) Image enhancement parameter automatic optimization method, storage medium and X-ray scanning device
JP2020030569A (en) Image processing method, image processing device, imaging device, lens device, program, and storage medium
JP6768312B2 (en) Image processing equipment, optical equipment, image processing methods, image processing programs, and recording media
CN113793282A (en) Method for removing moire fringe blur of space camera transfer function test image
JP5855210B2 (en) Information processing apparatus, line noise reduction processing method, and program
CN111563940A (en) Method for removing splicing artifacts in stepping axis scanning CT reconstruction and electronic medium
JP2020191037A (en) Image correction method
Yu et al. Estimating perturbations to laser position on tissue for lissajous scanning in endomicroscopy

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