Automatic correction method and device for fault polygon drawing graph
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for automatically correcting a fault polygon drawing.
Background
In the oil and mineral exploration work in the geological industry at present, the establishment of a tectonic graph is an important work content, and the method mainly utilizes the kinematic information of seismic wave variation such as reflection time, phasic, wave velocity and the like to research the distribution range and fluctuation form of a stratum interface and the fault development condition, converts the travel time in a seismic event section into the depth of the stratum interface, draws the geological tectonic graph and provides data for searching a tectonic oil and gas reservoir. Among them, planar drawing of fault polygons (polygons) is an important component, and the drawing precision directly affects the drawing precision of the structural diagram, and the precision of the structural diagram directly affects the accurate identification of traps and reservoirs, so that it is very important to accurately draw fault polygons. The current drawing methods mainly comprise the following two methods: one is manually finished, and manual drawing is performed according to the opening positions of faults and horizons, which is common in practical application; the second is to automatically connect by using the fracture of the horizon at each fault. The first mode adopts manual drawing, although the accuracy is high, the time and the labor are wasted, especially in an exploration block with a large area and multiple faults, if fault polygons is edited manually, each drawing needs a large amount of mechanical and repeated work, the time and the labor are wasted, and the work progress is greatly influenced; the second method, although improving the speed of drawing by automatic machine recognition, has the following problems:
1. the upper and lower disks of the Polygons have cross points;
the horizontal offset of the Polygons is not balanced enough and does not accord with geological rules;
2. polygons are not smooth and have more mutation points;
3. polygons are not closed at one end, and the closed end is not a sharp trend, but is rectangular.
Disclosure of Invention
The invention aims to provide a method and a device for automatically correcting a fault polygon drawing map, which are used for solving the problem of low precision of automatically drawing a geological structure map by using the existing machine, thereby improving the working efficiency and improving the precision of the geological structure map.
In order to achieve the above object, the technical solution of the present invention provides an automatic correction method for a tomographic polygon rendering map, including:
acquiring an original fault polygon drawing chart automatically identified and drawn by a machine;
respectively acquiring coordinate data of all symmetric sample point pairs from an original fault polygon drawing picture, wherein the symmetric sample point pairs are symmetric relations between sample points of an upper disc and sample points of a lower disc;
screening cross points in the original fault polygon drawing according to the size relationship between the sample point longitudinal coordinate data of the upper disc in the symmetrical sample point pair and the sample point longitudinal coordinate data of the lower disc symmetrical to the sample points of the upper disc;
removing the intersection points according to a first preset rule to obtain a first fault polygon drawing;
determining the distance between each pair of symmetrical sampling points in the first fault polygon mapping chart, and acquiring the maximum distance, and a first sampling point on the upper disc and a second sampling point on the lower disc corresponding to the maximum distance;
respectively taking the first sample point and the second sample point as central symmetric sample point pairs, taking the maximum distance as a reference distance, reducing the reference distance according to a second preset rule, and then adjusting the vertical coordinates of the symmetric sample point pairs except the central symmetric sample point pair as the distance between the symmetric sample point pairs except the central symmetric sample point pair to obtain a second fault polygon drawing, wherein the distance far away from the central symmetric sample point pair is gradually reduced until the distance is zero;
encrypting the number of sampling points in the second fault polygon mapping chart by adopting a resampling method;
and smoothing the encrypted sampling points to obtain a final fault polygon drawing.
The invention has the following advantages: according to the method, the cross point can be determined according to the size relationship between the vertical coordinate data of the sample point of the upper tray point and the vertical coordinate data of the sample point of the lower tray point which is symmetrical with the vertical coordinate data of the upper tray point in the symmetrical sample point pairs, after the cross point is removed according to a first preset rule, the vertical coordinate data between different symmetrical sample point pairs are adjusted according to the distance relationship between the symmetrical sample point pairs, so that the horizontal distance of a fault polygon is changed more uniformly, the two ends can be extinguished naturally, and the geological rule is met. Finally, sampling points in the second fault polygon drawing are encrypted by adopting a resampling method and are subjected to smoothing processing, so that the fault can be smooth and natural.
In order to achieve the above object, an embodiment of the present invention provides an automatic correction device for a tomographic polygon rendering map, including:
an acquisition unit configured to acquire an original tomographic polygon drawing chart drawn by automatic machine recognition;
respectively acquiring coordinate data of all symmetric sample point pairs from an original fault polygon drawing picture, wherein the symmetric sample point pairs are symmetric relations between sample points of an upper disc and sample points of a lower disc;
the screening unit is used for screening the cross points in the original fault polygon mapping chart according to the size relationship between the sample point longitudinal coordinate data of the upper disc in the symmetrical sample point pair and the sample point longitudinal coordinate data of the lower disc symmetrical to the sample points of the upper disc;
the processing unit is used for removing the intersection points according to a first preset rule to obtain a first fault polygon drawing;
determining the distance between each pair of symmetrical sampling points in the first fault polygon mapping chart, and acquiring the maximum distance, and a first sampling point on the upper disc and a second sampling point on the lower disc corresponding to the maximum distance;
respectively taking the first sample point and the second sample point as central symmetric sample point pairs, taking the maximum distance as a reference distance, reducing the reference distance according to a second preset rule, and then adjusting the vertical coordinates of the symmetric sample point pairs except the central symmetric sample point pair as the distance between the symmetric sample point pairs except the central symmetric sample point pair to obtain a second fault polygon drawing, wherein the distance far away from the central symmetric sample point pair is gradually reduced until the distance is zero;
the sampling unit is used for encrypting sampling points in the second fault polygon mapping chart by adopting a resampling method;
and the processing unit is also used for carrying out smoothing processing on the encrypted sampling points to obtain a final fault polygon drawing.
The invention has the following advantages: according to the method, the cross point can be determined according to the size relationship between the vertical coordinate data of the sample point of the upper tray point and the vertical coordinate data of the sample point of the lower tray point which is symmetrical with the vertical coordinate data of the upper tray point in the symmetrical sample point pairs, after the cross point is removed according to a first preset rule, the vertical coordinate data between different symmetrical sample point pairs are adjusted according to the distance relationship between the symmetrical sample point pairs, so that the horizontal distance of a fault polygon is changed more uniformly, the two ends can be extinguished naturally, and the geological rule is met. Finally, sampling points in the second fault polygon drawing are encrypted by adopting a resampling method and are subjected to smoothing processing, so that the fault can be smooth and natural.
Drawings
Fig. 1 is a schematic flow chart of an automatic correction method for a fault polygon rendering according to an embodiment of the present invention;
FIG. 2 is a schematic diagram comparing cross-points before and after removal;
FIG. 3 is a schematic diagram showing a comparison between horizontal fault distances of fault polygons before and after equalization processing;
FIG. 4 is a schematic diagram showing a comparison between before and after smoothing a fault;
fig. 5 is a schematic structural diagram of an automatic correction device for a tomographic polygon rendering according to an embodiment of the present invention.
Detailed Description
The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Example 1
The embodiment 1 of the invention provides a flow schematic diagram of an automatic correction method of a fault polygon rendering map. The method is mainly used for correcting the original fault polygon drawing which is drawn after automatic recognition by a traditional machine. The problems that the upper plate and the lower plate in the fault polygon drawing chart drawn by the traditional method have crossing points and uneven horizontal fault distance, do not accord with geological rules, the polygon is not smooth enough, the number of the mutation points is large, the two ends of the polygon are not killed and the like are solved.
The schematic flow diagram of the method is specifically shown in fig. 1, and the method may include:
and step 110, acquiring an original fault polygon drawing which is automatically identified and drawn by a machine.
And step 120, respectively acquiring coordinate data of all the symmetrical sample point pairs from the original fault polygon drawing graph.
Specifically, when the coordinate data in the original fault polygon drawing automatically identified and drawn by the machine is output, the sample point coordinate data of the upper disc is output first, and then the sample point coordinate data of the lower disc is output. And the sampling points of the upper disc and the sampling points of the lower disc have a symmetrical relation, so that the output sampling point coordinate data can be easily distinguished, wherein the first half part is the sampling point coordinate data of the upper disc, and the second half part is the sampling point coordinate data of the lower disc. And the first sampling point coordinate data of the upper disc and the first sampling point coordinate data of the lower disc are corresponding. By analogy, the coordinate data of all the symmetric sample point pairs can be easily known.
And step 130, screening the cross points in the original fault polygon drawing according to the size relationship between the sample point longitudinal coordinate data of the upper disc in the symmetrical sample point pair and the sample point longitudinal coordinate data of the lower disc symmetrical to the sample points of the upper disc.
Specifically, the ordinate data of the upper disk of the fault is generally larger than the ordinate data of the lower disk of the fault. Then, comparing the ordinate data of each pair of symmetric sample points, and determining that the upper and lower discs have intersection points at the positions which do not conform to the rule. That is, when it is determined that the sample point ordinate data of the upper disk in the second symmetric sample point pair in the original fault polygon mapping graph is less than or equal to the sample point ordinate data of the lower disk, it is determined that the second symmetric sample point pair is the intersection point. Wherein the second symmetric spline pair is any symmetric spline pair in all symmetric spline pairs.
And 140, removing the intersection points according to a first preset rule to obtain a first fault polygon drawing.
Specifically, in order to remove the intersection, the ordinate of the upper inventory may be adjusted, and the abscissa is not changed, so as to remove the intersection. And changing the vertical coordinate of the upper inventory is realized according to a first preset rule:
and adding a preset decimal to the ordinate data of the sample points of the lower tray of the second symmetric sample point pair to serve as a new ordinate of the upper tray of the second symmetric sample point pair, and forming a new sample point of the upper tray together with the abscissa of the upper tray of the second symmetric sample point pair.
And then, combining the sampling points of the new upper disc and the sampling points of the lower disc of the second symmetric sampling point pair into a new symmetric sampling point pair. Fig. 2 shows a comparative example before and after removing the intersection, as shown in fig. 2.
And the second symmetric sample point pair is any one of all symmetric sample point pairs in the original fault polygon rendering map. In fact, after all the intersections in the original tomographic polygon map are removed, the first tomographic polygon map, that is, a new tomographic polygon map, can be obtained. The first tomographic polygon map and the second tomographic polygon map to be described later are both new tomographic polygon maps obtained after a certain change, and are not the first and second tomographic polygons in the actual logical sense.
After removing the intersection, the following steps may be performed:
step 150, determining the distance between each pair of symmetrical sampling points in the first fault polygon mapping chart, and acquiring the maximum distance, and the first sampling point on the upper disc and the second sampling point on the lower disc corresponding to the maximum distance.
And 160, respectively taking the first sampling point and the second sampling point as center symmetric sampling point pairs, taking the maximum distance as a reference distance, reducing the reference distance according to a second preset rule, and then adjusting the vertical coordinates of the symmetric sampling point pairs except the center symmetric sampling point pair as the distance between the symmetric sampling point pairs except the center symmetric sampling point pair to obtain a second fault polygon drawing, wherein the distance far away from the center symmetric sampling point pair is gradually reduced until the distance is zero.
Specifically, based on many detailed observations (including observations of outcrops, deposits, seismic reflection data, etc.), the ideal pattern of "independent" individual fault pitches is that the fault pitch decreases in all directions towards the fault edge (end line) at a location near the center, and the fault pitch is zero at the end line location. Based on this feature, the spacing between each pair of symmetric sampling point pairs in the first tomographic polygon rendering map can be first determined, and then the maximum spacing is obtained. And the position of a pair of symmetric sample point pairs with the largest distance is taken as the central position of the fault, and the pair of symmetric sample point pairs can also be understood as central symmetric sample point pairs. For convenience of description, the sampling point of the upper disc in the centrosymmetric sampling point pair is defined as a first sampling point, and the sampling point of the lower disc in the centrosymmetric sampling point pair is defined as a second sampling point. The distance between the pairs of sample points is symmetrical about the center as the basic distance.
Because the distance between the symmetrical pairs of the sample points at the center in the fault is the largest, the distance between the symmetrical pairs of the sample points at the left and right sides is gradually reduced. Therefore, the coordinates of the symmetric pairs other than the central symmetric pair may be adjusted as the distance between the symmetric pairs other than the central symmetric pair after the basic distance is decreased according to the second preset rule. Thereby acquiring a second tomographic polygon map. Wherein, the distance between the symmetrical sample point pairs far away from the center is gradually reduced until the distance is zero.
Specifically, the maximum distance is taken as a reference distance, and after a value of n multiplied by i is reduced, the distance is taken as the distance between the nth symmetric sample point pair on the left side and the right side of the centrosymmetric sample point pair, n is a positive integer which is greater than or equal to 1 and less than or equal to one half of the total number of all the symmetric sample point pairs, the values of n are sequentially increased in a gradually increasing manner, and the increasing distance is 1; i is the ratio between the maximum pitch and n.
However, in order to ensure that the longitudinal center of each pair of symmetric sample points does not change, when adjusting the longitudinal coordinate of each pair of symmetric sample points, it is necessary to adjust the longitudinal coordinates of the original two pairs of symmetric sample points up and down, respectively, with reference to the centers of the original two pairs of symmetric sample points. For example, the maximum pitch is 10, n is 1-5, and i is 2. Then, when the vertical coordinate of each pair of symmetric sample point pairs is adjusted, the vertical coordinate of the sample point of the upper disc is a numerical value after the original vertical coordinate plus (the reference distance-nxi)/2; and the ordinate of the sample point of the lower plate is the value after the original ordinate- (the reference spacing-nxi)/2. Of course, the adjustment may be performed by sequentially decreasing the pitches before the symmetric sampling point pairs at equal pitches in the above-described manner, or may not be performed at equal pitches, and in short, the principle of gradually decreasing the pitches between the symmetric sampling point pairs on the left and right sides of the central symmetric sampling point pair is followed. Until the distance between the last symmetrical sampling point pairs on the left side and the right side is zero.
By the mode, the horizontal fault distances of fault polygons can be more balanced, the distance between the fault polygons is the largest from the center, and the distances between the fault polygons and the left side and the right side are gradually reduced until the fault polygons are extinguished, so that geological rules are met. Fig. 3 shows a comparison example before and after equalization processing is performed on the horizontal fault distance of the fault polygon, which is specifically shown in fig. 3.
And step 170, encrypting sampling points in the second fault polygon mapping chart by adopting a resampling method.
And 180, smoothing the encrypted sampling points to obtain a final fault polygon drawing.
Specifically, after the second tomographic polygon rendering is acquired, in order to further smooth the tomographic polygon rendering, the number of sampling points may be encrypted by using a resampling method. I.e. adding symmetric pairs of sample points. And then smoothing all the symmetric sample points, wherein a median filtering method or a mean filtering method can be adopted for smoothing optionally. To improve the smoothness of the polygon. Therefore, the curve in the finally obtained fault polygon drawing chart can be smoother and more natural. Specifically, as shown in fig. 4, fig. 4 is a front-back comparison example of smoothing processing of a fault. The curve in fig. 4 is significantly smoother.
According to the automatic correction method for the fault polygon drawing graph, the cross point can be determined according to the size relationship between the vertical coordinate data of the sample point of the upper tray point and the vertical coordinate data of the sample point of the lower tray point which is symmetrical to the upper tray point in the symmetrical sample point pairs, after the cross point is removed according to the first preset rule, the vertical coordinate data between different symmetrical sample point pairs are adjusted by using the distance relationship between the symmetrical sample point pairs, so that the horizontal distance of the fault polygon is changed more uniformly, and the two ends can be extinguished naturally, and accord with geological rules. Finally, sampling points in the second fault polygon drawing are encrypted by adopting a resampling method and are subjected to smoothing processing, so that the fault can be smooth and natural.
Example 2
Corresponding to embodiment 1, an embodiment of the present invention further provides an automatic correction apparatus for a tomographic polygon rendering map, specifically as shown in fig. 5, where the apparatus includes: an acquisition unit 501, a screening unit 502, a processing unit 503, and a sampling unit 504.
An acquisition unit 501 for acquiring an original tomographic polygon rendering map rendered by automatic machine recognition;
respectively acquiring coordinate data of all symmetric sample point pairs from an original fault polygon drawing picture, wherein the symmetric sample point pairs are symmetric relations between sample points of an upper disc and sample points of a lower disc;
a screening unit 502, configured to screen an intersection in the original fault polygon mapping chart according to a size relationship between sample point ordinate data of the upper tray in the symmetric sample point pair and sample point ordinate data of the lower tray symmetric to the sample point of the upper tray;
the processing unit 503 is configured to remove the intersection point according to a first preset rule, and obtain a first fault polygon rendering map;
determining the distance between each pair of symmetrical sampling points in the first fault polygon mapping chart, and acquiring the maximum distance, and a first sampling point on the upper disc and a second sampling point on the lower disc corresponding to the maximum distance;
respectively taking the first sample point and the second sample point as central symmetric sample point pairs, taking the maximum distance as a reference distance, reducing the reference distance according to a second preset rule, and then adjusting the vertical coordinates of the symmetric sample point pairs except the central symmetric sample point pair as the distance between the symmetric sample point pairs except the central symmetric sample point pair to obtain a second fault polygon drawing, wherein the distance far away from the central symmetric sample point pair is gradually reduced until the distance is zero;
a sampling unit 504, configured to encrypt sampling points in the second tomographic polygonal drawing by using a resampling method;
the processing unit 503 is further configured to perform smoothing processing on the encrypted sampling points to obtain a final tomographic polygonal mapping chart.
Optionally, the screening unit 502 is specifically configured to:
and when the vertical coordinate data of the sample points of the upper disc in the second symmetric sample point pair in the original fault polygon mapping chart is determined to be less than or equal to the vertical coordinate data of the sample points of the lower disc, determining the second symmetric sample point pair as an intersection point, wherein the second symmetric sample point pair is any one symmetric sample point pair in all the symmetric sample point pairs.
Optionally, the processing unit 503 is specifically configured to: adding a preset decimal to the ordinate data of the sample points of the lower tray of the second symmetric sample point pair, taking the ordinate data as the new ordinate of the upper tray of the second symmetric sample point pair, and forming a new sample point of the upper tray together with the abscissa of the upper tray of the second symmetric sample point pair;
and forming a new symmetric sample point pair by the sample point of the new upper disc and the sample point of the lower disc of the second symmetric sample point pair, and acquiring the first fault polygon drawing, wherein the second symmetric sample point pair is any one symmetric sample point pair in all symmetric sample point pairs in the original fault polygon drawing.
Optionally, the second preset rule is:
taking the maximum distance as a reference distance, reducing the value of n multiplied by i, and then taking the maximum distance as the distance between the nth symmetric sample point pair on the left side and the right side of the centrosymmetric sample point pair, wherein n is a positive integer which is more than or equal to 1 and less than or equal to one half of the total number of all the symmetric sample point pairs, the values of n are sequentially increased in an increasing way, and the increasing distance is 1; i is the ratio between the maximum pitch and n and is adjusted to ensure that each pair of symmetric samples is centered longitudinally unchanged.
Optionally, the processing unit 503 is specifically configured to: and smoothing the sampling points by using median filtering or mean filtering to obtain a final fault polygon mapping chart.
The functions performed by each component in the automatic correction device for a tomographic polygon rendering map according to an embodiment of the present invention are described in detail in embodiment 1 above, and therefore will not be described in detail here.
According to the automatic correction device for the fault polygon drawing graph, the cross point can be determined according to the size relationship between the sample point longitudinal coordinate data of the upper tray point and the sample point longitudinal coordinate data of the lower tray point which are symmetrical to the upper tray point in the symmetrical sample point pairs, after the cross point is removed according to the first preset rule, the longitudinal coordinate data between different symmetrical sample point pairs are adjusted according to the distance relationship between the symmetrical sample point pairs, so that the horizontal distance of the fault polygon is changed more uniformly, the two ends can be extinguished naturally, and the fault polygon drawing graph conforms to geological rules. Finally, sampling points in the second fault polygon drawing are encrypted by adopting a resampling method and are subjected to smoothing processing, so that the fault can be smooth and natural.
Example 3
Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, on which computer program instructions are stored, which when executed by a processor implement the method steps of embodiment 1 described above.
Although the invention has been described in detail above with reference to a general description and specific examples, it will be apparent to one skilled in the art that modifications or improvements may be made thereto based on the invention. Accordingly, such modifications and improvements are intended to be within the scope of the invention as claimed.