UNDISTORTED OUTSPREAD METHOD FOR ANNULAR IMAGES OF THE INNER WALL OF BOREHOLE WITH A CENTER OFFSET
20240209725 ยท 2024-06-27
Assignee
Inventors
Cpc classification
G06T3/40
PHYSICS
International classification
G06T3/40
PHYSICS
Abstract
An undistorted outspread method for annular images of the inner wall of borehole with a center offset is provided. The undistorted outspread method includes putting a camera into a hole and pushing the camera inward to carry out a video acquisition; selecting two frames of images from the video obtained; adjusting axis angle 2 in FIG. 2 to the same angle as axis angle 1 in FIG. 1; adjusting axis angle 1 and adjusted axis angle 2 in S2 until the angle is zero; calculating a radius ratio of motion 1 according to adjusted FIG. 1 and FIG. 2, and similarly, obtaining radius ratio of motion 2; obtaining radius ratio of axis distance 1, and similarly, obtaining radius ratio of axis distance 2; correcting radius ratio of axis distance 1 and radius ratio of axis distance 2; outspreading the undistorted image to obtain an undistorted outspread image.
Claims
1. An undistorted outspread method for annular images of the inner wall of borehole with a center offset, comprising S1, putting a camera into a hole and pushing the camera inward to carry out a video acquisition; S2, selecting two frames of images from the video obtained from S1, namely a
2. The undistorted outspread method for the annular images of the inner wall of borehole with the center offset according to claim 1, wherein in S2, if the angle of the axis angle 2 is different from the angle of the axis angle 1, obtaining a phase angle diagram 1 from the
3. The undistorted outspread method for the annular images of the inner wall of borehole with the center offset according to claim 1, wherein in S3, if the axis angle 1 and the axis angle 2 are not zero, obtaining a phase angle diagram 2 from the
4. The undistorted outspread method for the annular images of the inner wall of borehole with the center offset according to claim 1, wherein in S4, selecting any point in the
5. The undistorted outspread method for the annular images of the inner wall of borehole with the center offset according to claim 1, wherein in S5, selecting points with the same pixel gray value in a radius ratio diagram of motion 1 and a radius ratio diagram of motion 2 to obtaining a ring 1 and a ring 2, obtaining the radius ratio of axis distance 1 according to a center and radius of the ring 1, and similarly, obtaining the radius ratio of axis distance 2.
6. The undistorted outspread method for the annular images of the inner wall of borehole with the center offset according to claim 1, wherein in S6, obtaining a corrected radius 1 and angle 1 according to a radius ratio diagram of motion 1 and a radius ratio diagram of motion 2, and obtaining a corrected
7. The undistorted outspread method for the annular images of the inner wall of borehole with the center offset according to claim 1, wherein the
8. The undistorted outspread method for the annular images of the inner wall of borehole with the center offset according to claim 4, wherein the radius ratio of motion 1 is a ratio of a distance from the point to a control point in the
9. The undistorted outspread method for the annular images of the inner wall of borehole with the center offset according to claim 5, wherein the radius ratio of axis distance 1 is a ratio of the radius to a distance from a center of a circle to a center of the image.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0051] The following is a further explanation of the technical solution of the invention through drawings and an embodiment.
[0052] Unless otherwise defined, the technical terms or scientific terms used in the invention should be understood by people with general skills in the field to which the invention belongs. first, second, and similar words used in the invention do not mean any order, quantity or importance, but are only used to distinguish different components. Similar words such as include or comprise mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects.
Embodiment 1
[0053] S1, putting a camera into a hole and pushing the camera inward to carry out a video acquisition;
[0054] S2, selecting two frames of images from the video obtained from S1, namely
[0055] Field 1-2 is divided into a row offset graph and a column offset graph, a pixel gray value in the row offset graph is a row offset value of the midpoint of field 1-2, and a pixel gray value in the column offset graph is a column offset value of the midpoint of field 1-2. A tangent value of this point can be obtained from the row offset value and the column offset value, and a phase angle of this point can be obtained by bringing the tangent value into the arctangent function. Phase angle diagram 1 is obtained by the phase angles of all points.
[0056] Converting the row offset graph and the column offset graph into a distance, and the point on the obtained modular length graph is the distance of the trajectory distance of this point.
[0057] Axis angle 2 in
[0058] Different diameters are selected to obtain different detection circles, and then the corresponding axial angle differences are obtained, the average value of multiple axial angle differences is taken, and
[0059] S3, adjusting axis angle 1 and adjusted axis angle 2 in S2 until the angle is zero.
[0060] According to rotated
[0061] A trajectory line is determined according to the coordinates of any point in phase angle diagram 2 and the pixel gray value, the pixel gray value in phase angle diagram 2 is a phase angle of the displacement of the point, the equation of the trajectory line can be determined according to the coordinates of a point on the straight line and the slope of the straight line. A point that has the most intersected trajectory lines is selected as the control point, and then the coordinates of the control point are obtained.
[0062] Taking the control point as the center of the circle, detection circle 1 is generated in modular length graph 2, and the two points with the largest pixel gray value on detection circle 1 are obtained, that is, the two points with the longest displacement. These two points are symmetrical about the offset axis, then axis angle 3 is half of the sum of phase angles of the two points. By setting detection circle 1 of different radii, several axis angles are obtained, and the average value is taken after eliminating the outliers.
[0063] S4, calculating a radius ratio of motion 1 according to adjusted
[0064] radius ratio of motion 1 of any point in rotated
[0065] If the control point coincides with the center of the image, then the center distance of rotated
[0066] S5, obtaining radius ratio of axis distance 1 and radius ratio of axis distance 2 are obtained according to radius ratio of motion 1 and radius ratio of motion 2 in S4, respectively. Because the points on the same motion trajectory are the points on the same depth ring in the physical space, and the radius ratio of motion is a fixed value and related to the physical depth. Therefore, the radius ratio of axis distance in the physical space can be accurately obtained.
[0067] The points with the same pixel gray value are selected from radius ratio diagram of motion 1, and ring 1 with the same depth is obtained, the center coordinates can be obtained from the radius of ring 1 and the points with the same pixel gray value, radius ratio of axis distance 1 is the ratio of the distance from the center of ring 1 to the center of the image to the radius. Several radii and center positions of ring 1 can be obtained, several radius ratios of axis distances can be obtained, and the radius ratios of axis distances of different ring 1 are averaged. Similarly, the average value of radius ratio of axis distance 2 is obtained from radius ratio diagram of motion 2.
[0068] S6, correcting
[0069] Corrected radius: Due to the existence of the axis distance in the physical space, the distance from each group of points to the center of the circle can be obtained from the radius ratio of axis distance, and the radius ratio of axis distance is equal to the radius ratio of axis distance in the physical space. After the corrected center coincides with the image center, the radius value from the point to the image center can be obtained.
[0070] As shown in
[0075] ArOr2 can be transformed into the functions of ArOr1 and Or1Or2 by cosine formula, ArOr2 is related to the radius ratio of axis distance, therefore, the radius ratios before and after correction can be obtained by using the radius ratio of axis distance.
[0076] The angle after correction: due to the existence of the axis distance in the physical space, the functional relationship between the angle before correction and the angle after correction can be obtained from the radius ratio of axis distance.
[0077] There is a phase angle difference between a phase angle from the point to the center of the hole in the physical space and a phase angle from the corresponding point to the center of the image in
[0078] As shown in
[0079] Using the cosine formula for ?? to obtain:
[0080] Using the cosine formula for ?? to obtain:
[0085] Because AO.sub.2 is unknown, O.sub.1O.sub.2 and AO.sub.1 can be known from the radius ratio of axis distance. By taking the cosine formula of ?? into the cosine formula of ??, the functional relationship between ?? and ?? is obtained.
[0086] S7, matching
[0087] The radius and angle after correction are known, according to the polar coordinate formula, the image before correction can correspond to the corrected image one by one, and the corrected image without distortion can be obtained.
[0088] From the correspondence between the length and angle of the image coordinates before and after correction, the mapping of the coordinates before and after correction can be known, the corresponding formula of polar coordinates is as follows:
[0092] S8, outspreading the undistorted image in S7 to obtain an undistorted outspread image according to a polar coordinate formula.
[0093] In the undistorted image, the center of the image is the center of the hole, the projection of a certain section of the image in the hole can be obtained by taking a circle of different radii in the center of the image, the rectangular image is obtained after outspreading by using the polar coordinate formula to outspread.
[0094] As shown in
[0098] The outspread formula in the above S8 is not unique. It is only one of the outspread methods. The ring coordinates and the rectangular coordinates correspond one by one through the formula.
[0099] After the undistorted image is outspread, the panoramic image of the ring is outspread into a rectangular image that is convenient for stitching and observation, and finally, the undistorted outspread image is obtained.
[0100] Finally, it should be explained that the above embodiment is only used to explain the technical solution of the invention rather than restrict it. Although the invention is described in detail concerning the better embodiment, the ordinary technical personnel in this field should understand that they can still modify or replace the technical solution of the invention, and these modifications or equivalent substitutions cannot make the modified technical solution out of the spirit and protection scope of the technical solution of the invention.