This application claims the priority benefit of China application no. 202110733603.2, filed on Dec. 14, 2021. The entirety of the above-mentioned patent application is hereby incorporated by reference and made a part of this specification.
The present invention relates to the field of underwater optical imaging, and in particular relates to a multi-medium imaging analytic method for underwater medium surface position compensation.
Compared with a traditional optical geometry analytic method, in underwater vision measurement, an imaging equation no longer meets the traditional collinearity equations (Kotowksi, 1988) due to refractive projections of different media, thus a multi-medium imaging analytic algorithm has become the most important space geometry analytic algorithm, analytic accuracy and computation complexity of which directly influence quality of measurement results and computational efficiency.
At present, the research on the application of underwater vision measurement is mainly focused on the field of computer vision, most of research results are only for simple double-medium imaging analysis, and are only in the simplified refraction geometry model for the multi-medium imaging analysis; the actual optical imaging model is considered too idealized, for example, ideal model conditions that an image plane is parallel to the medium surface, the thickness of the intermediate medium is ignored, and coefficient of refraction of the medium is known are set.
However, in practical engineering application, the ideal imaging model has low underwater target localization accuracy due to the neglect of some parameters in a precise analytic model, thus most of the previous research results can only be applied to underwater 3D reconstruction tasks with low accuracy requirements and cannot be directly applied to precision measurements of underwater structures with millimeter-level accuracy.
An objective of the present invention is to provide a multi-medium imaging analytic method for underwater medium surface position compensation to overcome defects in the prior art.
The objective of the present invention can be achieved through the following technical solutions:
a multi-medium imaging analytic method for underwater medium surface position compensation is used for compensating a medium surface position based on refraction theorem, specifically comprising:
acquiring a refractive index and a thickness of each medium, computing a medium surface position compensation value according to an incident angle, and obtaining a virtual medium surface as a new medium surface to convert a multi-medium imaging analysis model into a double-medium imaging analysis model.
A corresponding relationship between an incident angle and an emergent angle at each medium surface is acquired according to the Snell’s Law, and a relationship among the incident angle, the emergent angle, the medium surface position compensation value and the medium thickness is obtained according to the sine theorem and the trigonometric function relationship.
When media along an incident direction are air, glass, and water in sequence, a computational formula of the medium surface position compensation value is as follows:
wherein dl is the medium surface position compensation value, i.e., a distance between a virtual medium surface and an air-glass medium surface, d is a thickness of the glass, θ1 is an incident angle of the air-glass medium surface, θ2 is an emergent angle of the air-glass medium surface, and θ3 is an emergent angle of a glass-water medium surface.
An equation for obtaining a virtual medium surface according to the medium surface position compensation value is as follows:
wherein A, B and C are respectively equation coefficients of the virtual medium surface.
The medium surface position compensation value is only related to an incident angle and the medium thickness, and for a multilayer medium, a lookup table is constructed according to a medium type and the medium thickness.
For a situation where incident angles of target points are inconsistent in the processing of mass high-speed image sequences, linear interpolation or cubic convolution interpolation is conducted on the constructed lookup table to make each target point have a corresponding medium surface position compensation value.
The accuracy of the underwater point measurement of the method reaches a sub-millimeter level.
In a similar way, for a multi-medium model, computation is conducted according to a derivation method of three layers of media.
Compared with the prior art, the present invention has the following advantages:
in accordance with a multi-medium imaging analytic method for underwater medium surface position compensation provided by the present invention, three-dimensional space coordinates and three-dimensional deformation parameters of an underwater target are accurately measured, and stability of the multi-medium imaging analytic method is verified through simulation tests. Experimental results indicate that the method can achieve sub-millimeter level point position measurement accuracy in the precision measurement of underwater structures.
The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
The present invention provides a multi-medium imaging analytic method for underwater medium surface position compensation, wherein the method is used for compensating a medium surface position based on refraction theorem to convert a multi-medium imaging analytic model into a simple double-medium imaging analytic model. In the process of simplification, a strict medium surface compensation equation is derived through a ray tracing method. For better understanding, the classical multi-medium photogrammetry problem “air-glass-water” model is used to explain the mathematical conversion process in the multi-media imaging analytical model in the embodiment, assuming that medium surfaces are parallel to each other, then the mathematical conversion from multi-medium to double-medium is achieved.
As shown in
in above equation, n1 , n2 and n3 respectively denote refractive index parameters of air, glass, and water; and when the incident angle and the refractive index parameter of the medium are known, the refraction angle can be computed according to the equation (1).
As shown in
[0033] in the equation (2), lPBPC denotes the length of a line segment between an end point PB and an end point PC, and meanwhile, the following angle relationship can be acquired from
[0034] in the equation (3), ∠PBPAPC denotes an included angle between a line segment PBPA and a line segment PAPC, ∠PAPBPC denotes an included angle between a line segment PAPB and a line segment PBPC. The following can be obtained from the sine theorem:
in the equation (4), lPAPC denotes the length of a line segment between an end point PA and the end point PC, and based on the equation (4), the following can be obtained:
In addition, the following can be obtained according to the trigonometric function relationship:
Based on the equation (5) and the equation (6), a medium surface position compensation value dl can be obtained:
in the double-medium imaging model, the compensation value dl can directly correct a medium surface position parameter, as shown in
Refractive index parameters n1, n2 and n3 of three media can be measured through a high-accuracy refractometer, therefore, the compensation value (dl) of the medium surface is only determined by the incident angle (θ1) and the thickness (d) of the glass medium. When a spatial position of the medium surface is known, a spatial position of the virtual medium surface can be derived, and then the virtual medium surface is used as a new medium surface to simplify a refraction model, and a multi-medium geometry analytic problem can be converted into the ordinary double-medium geometry analytic problem through the computation of the virtual medium surface. Hence, according to the Snell’s law and the law of rectilinear propagation of light, when the light passes through different numbers of media or different types of media, a geometric shape of light path propagation can be determined to be derived to the virtual medium surface. To solve the problem of complex multi-medium imaging analysis, a multi-medium imaging analytic method is simplified to a double-medium imaging analytic method through a medium surface position compensation mode.
Based on the equation (8), the medium surface position compensation values under different incident angle conditions can be computed under the condition that the thickness of medium is known. For example, when d is 11.9 mm, compensation values computed according to different incident angles are as shown in
To verify feasibility and stability of the method provided by the present invention, a simulation test of the multi-medium imaging geometry analysis is implemented based on a Monte Carlo analog simulation method. In the experiment, when errors of different levels are added in the image point coordinates, the object space point coordinates, the medium surface position parameter and the refractive index parameter, the stability of the method is respectively tested. The Monte Carlo simulation method can be used to analyze the uncertainty and random distribution of each model parameter and the influence of the model parameters on the entire photogrammetric geometric model. The simulation test is mainly focused on the influence of different types of parameter errors on positioning results of the point positions. A computational equation of simulation data is as follows:
In the equation (9), Pr is an output simulation parameter, Po is an input original parameter, σp is a standard deviation (error) of the simulation parameter, and nGauss is a random parameter of normal distribution (Gaussian distribution). In an iterative optimization process of the multi-medium imaging analytic model, a certain set of input parameters may directly influence the calculation of other parameters. To analyze and compare the influence of different types of parameters on the three-dimensional reconstruction, an analog simulation result is evaluated by using the reconstruction accuracy of the check point in this experiment.
Before the simulation test, an error-free photogrammetric network needs to be constructed through the multi-medium imaging geometric model. To simulate the construction of the multi-medium photogrammetric network, a true three-dimensional multi-medium photogrammetric network can be directly converted into the error-free photogrammetric network in a way of ignoring the parameter error. Therefore, the simulation parameters in the multi-medium photogrammetric network are as shown in Table 1.
Table 1 Simulation parameters including camera parameters, refractive index parameters, and medium surface position parameters
Control point coordinates are randomly generated in a field of view of about 2 m of the camera; in accordance with the simulation parameters in the Table 1, the image coordinates of these control points can be computed through a back projection method based on the multi-medium imaging analytic model, and then the error-free multi-medium photogrammetric network is constructed. In addition, the simulated control points are divided into two parts, one of which is involved in the computation of multi-medium bundle adjustment and the other is considered as a check point for three-dimensional accuracy evaluation, thus verifying the robustness of the multi-medium imaging analytic method for underwater medium surface position compensation. In the simulation test, 20 control points are involved in the computation of the multi-medium bundle adjustment, and the other 20 control points are considered as check data.
In the simulation experiment, the influences of the image coordinate error, the object space coordinate error, the medium surface position error, and the refractive index error on the three-dimensional reconstruction accuracy are respectively calculated and analyzed. In consideration of an identifying accuracy of a round target, the image coordinate error σic is simulated between 0.01 pixel and 0.1 pixel; according to the point position measurement accuracy of a total station, the object pace coordinate error σoc is simulated between 0.1 mm and 1 mm; similarly, the medium surface position error σms is also set between 0.1 mm and 1 mm; and according to the measurement accuracy of an abbe refractometer, the simulation error σri of the refractive rate is between 0.00005 and 0.00015. As shown in
Table 2 Coordinate difference between computed value and simulated (true) value of check point
In each simulation computation, all model parameters are recomputed through a multi-medium bundle adjustment method, and then object space coordinates of the check point are reconstructed through a forward intersection algorithm. Therefore, a coordinate difference between a calculated value and a simulated (true) value in the method of the present invention is regarded as an accuracy evaluation index. When the Gaussian random error of 0.1 pixels is introduced into the image coordinates, the comparison results of the calculated values and the simulated values of the check points are shown in detail in table 2. For 20 check points, the coordinate root-mean-square (RMS) errors
thereof may reach 0.15 mm in an X direction, may reach 0.7 mm in a Y direction, and may reach 0.31 mm in az direction; and the overall positioning error
may reach 0.78 mm. Therefore, under the multi-medium photogrammetric network simulated this time, an image coordinate error of 0.1 pixel may cause a point position three-dimensional reconstruction error of about 0.78 mm.
of the check point coordinates is clearly displayed. Obviously, the three-dimensional reconstruction error of the measured point position is increased as the model parameter error increases.
As shown in
Number | Date | Country | Kind |
---|---|---|---|
202110733603.2 | Dec 2021 | CN | national |