A method for correcting image distortion and its application

By determining the number of image scanning points in the laser scanning imaging system and performing nonlinear function fitting, linear compensation correction is performed directly on the hardware layer, the problem of image distortion in the laser scanning imaging system is solved, the equipment design is simplified and imaging accuracy is improved .

CN113327202BActive Publication Date: 2024-11-15SUZHOU MICROCLEAR MEDICAL INSTR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110330313.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-30
Publication Date
2024-11-15
Estimated Expiration
2041-03-30

AI Technical Summary

Technical Problem

In the prior art, image distortions caused by retinal surfaces and optical systems in laser scanning imaging systems are difficult to effectively correct. The existing methods rely on complex image processing algorithms, and the results rely on algorithm processing.

Method used

By determining the number of image scan points, obtaining voltage values ​​and image high values, performing nonlinear function fit and linear compensation correction, and directly performing corrections on the hardware layer to avoid complex image processing algorithms.

Benefits of technology

Simplifies device design, eliminates image distortion directly at the hardware layer, and improves the accuracy and efficiency of the imaging system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113327202B_ABST
    Figure CN113327202B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of imaging systems, and in particular to a method for correcting image distortion and its application. The first aspect of the present invention discloses a method for correcting image distortion. The method for correcting image distortion in the present invention comprises the following steps: S1: determining the number of image scanning points n; S2: obtaining the voltage value and image height value of each image scanning point, recorded as a first data group, which are respectively (x1, y1), (x2, y2), (x3, y3)…(x n ,y n ); obtain y=f(x) through the first data set; wherein the voltage value is x, the image height value is y; wherein y=f(x) is a nonlinear function; S3: perform linear compensation correction on the y=f(x) to obtain a second data set; S4: input the second data set into the control system to obtain a corrected image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of imaging systems, and in particular to a method for correcting image distortion and an application thereof. Background Art

[0002] At present, there are more and more devices using laser scanning for imaging, and image distortion for laser scanning imaging has become a very common problem. Different imaging systems will cause various image distortion problems due to different reasons. Analyzing the causes of distortion in the imaging system and correcting it is a very important means of image distortion correction. The main causes of distortion include the following: distortion of the optical camera itself, image distortion caused by the curved surface of the fundus retina during imaging, and image distortion caused by changes in the scanning speed of the horizontal and longitudinal galvanometers. This distortion causes distortion between the image and the real object. In the imaging system, since the angular velocity of the galvanometer scanning is constant, but the retina is a curved surface, the optical path is not equal when the incident light shines on the center and edge of the retina, and there is an optical path difference. This optical path difference causes different linear speeds when the galvanometer scans, which in turn causes image distortion.

[0003] In the prior art, the distorted image is mainly corrected by using image processing algorithms. For example, chessboard-based image distortion correction: by shooting a certain number of chessboard squares of known width at different positions and angles, the coordinates of the corner points of the chessboard are extracted, and the internal parameter matrix and distortion coefficient are calculated accordingly. These prior art processing methods are relatively complex, and the processing results depend on the algorithm.

[0004] In view of the above problems, it is necessary to provide a method for correcting image distortion to solve the above technical problems. Summary of the invention

[0005] A first aspect of the present invention discloses a method for correcting image distortion. The method for correcting image distortion in the present invention comprises the following steps:

[0006] S1: Determine the number of image scanning points n;

[0007] S2: Obtain the voltage value and image height value of each image scanning point, recorded as the first data group, which are (x1, y1), (x2, y2), (x3, y3) ... (xn, yn); obtain y = f(x) through the first data group; wherein the voltage value is x, and the image height value is y; wherein y = f(x) is a nonlinear function;

[0008] S3: performing linear compensation correction on the y=f(x) to obtain a second data set;

[0009] S4: Input the second data group into a control system to obtain a corrected image.

[0010] In a preferred embodiment, the specific steps of S3 are: obtain the inverse function of y=f(x), denoted as x=f-1(y), and perform linear assignment on y, denoted as y11, y22, y33…ynn respectively; according to x=f-1(y), respectively obtain x11, x22, x33…xnn, and obtain a second data group, which are (x11,y11), (x22,y22), (x33,y33)…(xnn,ynn) respectively; the second data group is the corrected voltage value and image height value.

[0011] In a preferred embodiment, the second data set is stored in a control system, and during operation, the control system can directly retrieve the second data set to obtain a corrected image.

[0012] In a preferred embodiment, the specific steps of S3 are: obtaining y=f1(x), where y=f1(x) is a linear change; performing linear assignment on y, which are respectively recorded as y111, y222, y333…ynnn; according to y=f1(x), respectively obtaining x111, x222, x333…xnnn, to obtain a second data group, which are (x111, y111), (x222, y222), (x333, y333)…(xnnn, ynnn); the second data group is the corrected voltage value and image height value.

[0013] A second aspect of the present invention discloses an optical coherence tomography apparatus, which implements the above-mentioned method for correcting image distortion.

[0014] The third aspect of the present invention discloses a confocal laser fundus imager, which implements the above-mentioned method for correcting image distortion.

[0015] A fourth aspect of the present invention discloses a fundus scanning system, which implements the above-mentioned method for correcting image distortion.

[0016] A fifth aspect of the present invention discloses a fundus camera, which implements the above-mentioned method for correcting image distortion.

[0017] A fifth aspect of the present invention discloses a laser therapy device, which implements the above-mentioned method for correcting image distortion.

[0018] Compared with the prior art, the image distortion correction method designed in the present invention can solve the problem of image distortion from the underlying hardware layer, avoiding the use of complex image processing algorithms in traditional solutions, and making the design of the device simpler. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flowchart of the method for correcting image distortion.

[0020] Figure numbers: 1-S1; 2-S2; 3-S3; 4-S4. DETAILED DESCRIPTION

[0021] 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 in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.

[0022] See also Figure 1 The first aspect of the present invention discloses a method for correcting image distortion. The method for correcting image distortion in the present invention comprises the following steps:

[0023] S1: Determine the number of image scanning points n;

[0024] The term "image scan number" refers to the number of pixels in the horizontal or vertical direction of an image.

[0025] In the present invention, there is no particular limitation on the number of scanning points n. The larger the value of the number of scanning points n is, the more conducive it is to correcting image distortion. However, when the value of n is too large, the amount of data that the system needs to process is large.

[0026] S2: Obtain the voltage value and image height value of each image scanning point, recorded as the first data group, which are (x1, y1), (x2, y2), (x3, y3) ... (xn, yn); obtain y = f(x) through the first data group; wherein the voltage value is x, and the image height value is y; wherein y = f(x) is a nonlinear function;

[0027] The term "voltage value" refers to the rotation angle of the scanning galvanometer and its corresponding input voltage value.

[0028] The term "image height value" refers to the width of the scanned image.

[0029] For an image, the first data set can be obtained through optical fitting software, which are (x 1, y1), (x 2, y 2), (x 3, y 3) ... (xn, yn); then the first data set is fitted with a function to obtain y = f (x); where y = f (x) is a nonlinear change, the reason is that the scanning line speed of the galvanometer is different, resulting in a certain image distortion at the edge and center of the image. At the same time, in the actual process, due to the curvature of the human eye retina and the aberration of the optical system itself, the distance between the X and Y galvanometers will produce image distortion, so y = f (x) is a nonlinear change. In an ideal case, y = f (x) is a linear change.

[0030] S3: performing linear compensation correction on the y=f(x) to obtain a second data set;

[0031] In the above step S2, due to various reasons, y=f(x) changes nonlinearly, which is manifested as image distortion. To eliminate image distortion, those skilled in the art use image processing algorithms to post-process the image to eliminate the distortion. However, for the solution of the present invention, technical innovation is carried out from the underlying hardware layer to eliminate the distortion. The inventive concept of the present invention is: based on the curve y=f(x) obtained by fitting, linear compensation is performed, that is, the nonlinearly changing galvanometer voltage value is obtained, thereby eliminating the image distortion from the underlying hardware layer.

[0032] In a preferred embodiment, the specific steps of S3 are: obtain the inverse function of y=f(x), denoted as x=f-1(y), and perform linear assignment on y, denoted as y11, y22, y33…ynn respectively; according to x=f-1(y), respectively obtain x11, x22, x33…xnn, and obtain a second data group, which are (x11,y11), (x22,y22), (x33,y33)…(xnn,ynn) respectively; the second data group is the corrected voltage value and image height value.

[0033] In f(x), x1, x2, x3…xn are linear changes, and y1, y2, y3…yn are nonlinear changes. For example, in the experiment, through optical fitting software, f(x)=6*10-6x5-5*10-13x4+0.006x3+5*10-11x2+0.5577x, R2=1 is obtained; the inverse function of f(x) is obtained to obtain x=f-1(y), and y is re-assigned linearly and recorded as y11, y22, y33…ynn respectively; again according to x=f-1(y), the corresponding x11, x22, x33…xnn are obtained respectively to obtain the second data group, which are (x11,y11), (x22,y22), (x33,y33)…(xnn,y nn); the second data set is the corrected voltage value and image height value. The function and the inverse function are symmetrical about y=x, and the corrected voltage value is a nonlinear change, thereby eliminating image distortion.

[0034] The formula f(x) is merely an example, and the patent protection scope of the present invention is not limited to this formula. Any inventive concept based on the present invention is equivalent to the present invention.

[0035] In a preferred embodiment, the second data set is stored in a control system, and during operation, the control system can directly retrieve the second data set to obtain a corrected image.

[0036] Storing the corrected second data set in the control system can reduce the workload during the system operation process.

[0037] In another preferred embodiment, the specific steps of S3 are: obtaining y=f1(x), where y=f1(x) is a linear change; performing linear assignment on y, which are respectively recorded as y111, y222, y333…ynnn; according to y=f1(x), respectively obtaining x111, x222, x333…xnnn, to obtain a second data group, which are (x111, y111), (x222, y222), (x333, y333)…(xnnn, ynnn); the second data group is the corrected voltage value and image height value.

[0038] Obtain y=f1(x), y=f1(x) is a linear change; its expression is y=kx, each galvanometer has a fixed coefficient k, according to y=f1(x), y is linearly assigned, and recorded as y111, y222, y333…ynnn; according to y=f1(x), x111, x222, x333…xnnn are obtained respectively, and the second data group is obtained, which is (x111, y111), (x222, y222), (x333, y333)…(xnnn, ynnn); the second data group is the corrected voltage value and image height value. Through this implementation, y=f(x) can also be compensated as a linear function.

[0039] In the present invention, the linear function is not a strict linear function. As long as the change is linear or quasi-linear, it will fall within the protection scope of the present invention.

[0040] S4: Input the second data group into a control system to obtain a corrected image.

[0041] The corrected second data set is input into the control system and the operating system, thereby obtaining a corrected image.

[0042] In a preferred embodiment, the second data set is stored in a control system, and during operation, the control system can directly retrieve the second data set to obtain a corrected image.

[0043] Storing the corrected second data set in the control system can reduce the workload during the system operation process.

[0044] A second aspect of the present invention discloses an optical coherence tomography apparatus, which implements the above-mentioned method for correcting image distortion.

[0045] The third aspect of the present invention discloses a confocal laser fundus imager, which implements the above-mentioned method for correcting image distortion.

[0046] A fourth aspect of the present invention discloses a fundus scanning system, which implements the above-mentioned method for correcting image distortion.

[0047] A fifth aspect of the present invention discloses a fundus camera, which implements the above-mentioned method for correcting image distortion.

[0048] A sixth aspect of the present invention discloses a laser therapy device, which implements the above-mentioned method for correcting image distortion.

[0049] 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., but is certainly not limited to these listed devices. All inventive concepts using the present invention fall within the protection scope of the present invention.

[0050] Compared with the prior art, the image distortion correction method designed in the present invention can solve the problem of image distortion from the underlying hardware layer, avoiding the use of complex image processing algorithms in traditional solutions, and making the design of the device simpler.

[0051] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for correcting image distortion, comprising the following steps: S1: Determine the number of image scanning points n; S2: Obtain the voltage value and image height value of each image scanning point, recorded as the first data group, which are (x 1, y 1), (x 2, y 2), (x 3, y 3) ... (xn, yn); y = f (x) is obtained through the first data group; 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) to obtain a second data set; The specific steps of S3 are: obtaining the inverse function of y=f(x), recorded as x=f-1(y), performing linear assignment on y, recorded as y11, y22, y33...ynn respectively; according to x=f-1(y), respectively obtaining x11, x22, x33...xnn, to obtain a second data group, which are (x11,y11), (x22,y22), (x33,y33)...(xnn,ynn); the second data group is the corrected voltage value and image height value; Or, obtain y=f1(x), y=f1(x) is a linear change; its expression is y=kx, each galvanometer has a fixed coefficient k, according to y=f1(x), y is linearly assigned, and recorded as y111, y222, y333…ynnn respectively; according to y=f1(x), x111, x222, x333…xnnn are obtained respectively, and the second data group is obtained, which is (x111,y111), (x222,y222), (x333,ynnn) respectively. 333)…(x nnn,y nnn); the second data group is the corrected voltage value and image height value; S4: inputting the second data group into a control system to obtain a corrected image; The second data set is stored in the control system. During operation, the control system can directly retrieve the second data set to obtain the corrected image.

2. An optical coherence tomography instrument, wherein the optical coherence tomography instrument implements the image distortion correction method according to claim 1.

3. A confocal laser fundus imager, which implements the image distortion correction method according to claim 1.

4. A fundus scanning system, wherein the fundus scanning system implements the image distortion correction method according to claim 1. 5 . A fundus camera, wherein the fundus camera implements the image distortion correction method according to claim 1 .

6. A laser therapy device, which implements the image distortion correction method described in claim 1.