A TGC Data Consistency Processing Method, Processing System, Device and Medium
By constructing the TGC coordinate system and correcting the gain value, a TGC discrete data sequence is generated, which solves the problems of large data volume of TGC curve and the increase in storage capacity requirements, and achieves the reduction of data volume and improvement of consistency.
Patent Information
- Application Number
- CN202510105416.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2045-01-23
AI Technical Summary
In ultrasound examination, the amount of data of the TGC curve is large, resulting in an increase in the storage capacity requirement, and it is difficult for the prior art to effectively process and derive high-precision TGC data.
By constructing the TGC coordinate system, the horizontal axis is divided into multiple sampling intervals, and a TGC curve is constructed based on the location information of the key point, the initial gain value is obtained and corrected to the closest gain value, and a TGC discrete data sequence is generated.
The data volume of TGC curve is reduced, the capacity requirements for storage devices are reduced, the export efficiency is improved, the same accuracy of the gain value is ensured, and data consistency is improved.
Smart Images

Figure CN119621737B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of acoustic experiments, and particularly relates to a method, a processing system, a device and a medium for processing TGC data consistency. Background Art
[0002] The TGC curve (Time Gain Compensation curve) is a curve used to adjust the echo intensity of tissues at different depths in an ultrasonic image. During ultrasonic examination, when ultrasonic waves propagate in human tissues, attenuation occurs, resulting in inconsistent echo intensities of tissues at different depths. The near-field echo is strong, and the far-field echo is weak. The TGC curve performs gain compensation on echo signals at different depths to make the echo intensity in the image more uniform, thereby improving the quality and diagnostic value of the image.
[0003] The TGC for real-time imaging of ultrasonic diagnostic devices is usually organized into 8 intervals and is manually adjusted in real time by a doctor, without requiring high precision. For an acoustic experiment platform with higher requirements for TGC, in order to enable accurate gain compensation for the image at different depths, the abscissa of the TGC curve may have 8192 sampling points, etc., and each sampling point corresponds to a gain compensation data, which results in a large amount of data. Whether it is the storage system of the device itself or exporting the data to an external storage device, challenges in storage capacity may be faced. Summary of the Invention
[0004] In view of the above-mentioned defects or deficiencies in the prior art, the present invention aims to provide a method, a processing system, a device and a medium for processing TGC data consistency.
[0005] In a first aspect, the present invention provides a method for processing TGC data consistency. The processing method includes an export method, and the export method includes the following steps:
[0006] Construct a TGC coordinate system, where the horizontal axis of the TGC coordinate system includes multiple sampling points representing depths, and the vertical axis includes a gain sequence, and the gain sequence includes multiple gain values;
[0007] Divide the horizontal axis into multiple sampling intervals equally, and the ordinates corresponding to the sampling points within each sampling interval are the same;
[0008] Receive multiple key point position information, and construct a TGC curve according to the key point position information, where the key point position information includes the abscissa and ordinate of the key points drawn by the user;
[0009] Obtain the abscissa of the value taken for each sampling interval according to the value-taking strategy, and obtain the initial gain value corresponding to each abscissa of the value taken according to the TGC curve;
[0010] When none of the initial gain value and the gain values in the gain sequence correspond to each other, the initial gain value is corrected to the gain value closest to it;
[0011] A TGC discrete data sequence is obtained. The TGC discrete data sequence includes a plurality of gain values corresponding to the value abscissas, and the number of the gain values is the same as the number of the sampling intervals.
[0012] According to the technical solution provided by the present invention, after receiving the plurality of key point position information and before constructing the TGC curve according to the key point position information, the following steps are further included:
[0013] The sampling points of each sampling interval are obtained according to the sampling point setting strategy;
[0014] When the abscissa of the key point does not correspond to the abscissa of any of the sampling points, the key point is adsorbed so that its abscissa is the same as the abscissa of the sampling point closest to it.
[0015] According to the technical solution provided by the present invention, the value-taking strategy is: the abscissas of the sampling points corresponding to all the sampling intervals are the value-taking abscissas of each sampling interval.
[0016] According to the technical solution provided by the present invention, the processing method further includes an import method, and the import method includes the following steps:
[0017] A user discrete data sequence is received, including a plurality of gain values to be imported. The user discrete data sequence is set by the user or is the TGC discrete data sequence modified by the user;
[0018] According to the data screening strategy, the user discrete data sequence is corrected to an updated discrete data sequence. The updated discrete data sequence includes a plurality of updated gain values; the updated discrete data sequence meets the requirements of system import;
[0019] The updated discrete data sequence is received, and the updated gain values or the gain values to be imported corresponding to the value-taking abscissas of each sampling interval are inversely deduced, and a TGC curve is generated and displayed.
[0020] According to the technical solution provided by the present invention, the data screening strategy includes the following steps:
[0021] Judge whether the number of the gain values to be imported in the user discrete data sequence is equal to the number of the sampling intervals formed by division;
[0022] When they are equal, if it is determined that the to-be-imported gain value is greater than the maximum gain value in the gain sequence or less than the minimum gain value in the gain sequence, the to-be-imported gain value is corrected to the edge value to form the updated gain value.
[0023] According to the technical solution provided by the present invention, after "When they are equal", the following steps are further included:
[0024] When it is determined that the precision of each to-be-imported gain value does not meet the system preset precision, the to-be-imported gain value is corrected to the updated gain value to meet the system preset precision.
[0025] According to the technical solution provided by the present invention, after receiving the updated discrete data sequence and inversely deducing the updated gain value corresponding to the abscissa of the value-taking of each sampling interval, the following steps are further included:
[0026] According to the key-point value-taking strategy, a plurality of corrected key points are obtained from the updated discrete data sequence;
[0027] Generate and display a TGC curve, and the corrected key points are included on the TGC curve;
[0028] Receive the correction position information of the corrected key point, and the correction position information is formed by the user dragging the corrected key point;
[0029] Obtain the sampling interval where the corrected key point is located, and record it as the corrected sampling interval;
[0030] According to the correction position information, correct the TGC curve corresponding to the corrected sampling interval to obtain a corrected TGC curve.
[0031] In a second aspect, the present invention provides a TGC data consistency processing system for implementing the TGC data consistency processing method as described above. The system includes:
[0032] A first construction module, configured to construct a TGC coordinate system. The horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, and the gain sequence includes a plurality of gain values;
[0033] The first construction module is further configured to equally divide the horizontal axis into a plurality of sampling intervals, and the ordinates corresponding to the sampling points in each sampling interval are the same;
[0034] A second construction module, configured to receive a plurality of key-point position information and construct a TGC curve according to the key-point position information, where the key-point position information includes the abscissa and ordinate of the key point drawn by the user;
[0035] A parsing module, configured to obtain the abscissa of each sampling interval according to a value-taking strategy, and obtain an initial gain value corresponding to each abscissa according to the TGC curve;
[0036] An adsorption module, configured to correct the initial gain value to the closest gain value when the initial gain value does not correspond to any of the gain values in the gain sequence;
[0037] A storage module, configured to obtain a TGC discrete data sequence, where the TGC discrete data sequence includes a plurality of gain values corresponding to the abscissa of the value-taking, and the number of gain values is the same as the number of sampling intervals.
[0038] In a third aspect, the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the TGC data consistency processing method as described above are implemented.
[0039] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the TGC data consistency processing method as described above are implemented.
[0040] In summary, the present invention proposes a TGC data consistency processing method, processing system, device, and medium. The processing method includes a data export method, and the export method includes: constructing a TGC coordinate system, where the horizontal axis of the TGC coordinate system includes a plurality of sampling points, and the vertical axis includes a gain sequence with a plurality of gain values; equally dividing the horizontal axis into a plurality of sampling intervals, the sampling points of each sampling interval corresponding to the same ordinate, receiving the key point position information selected by the user, and constructing a TGC curve; obtaining the abscissa of each sampling interval according to the value-taking strategy, and obtaining the corresponding initial gain value according to the TGC curve; when the initial gain value does not correspond to the gain value in the gain sequence, correcting the initial gain value to the closest gain value to obtain a TGC discrete data sequence, which includes a plurality of gain values corresponding to the abscissa of the value-taking, and the number of gain values is the same as the number of sampling intervals. This method divides the sampling points to obtain a plurality of sampling intervals, obtains a plurality of gain values corresponding to the sampling intervals, and constructs a TGC discrete data sequence. Compared with the existing method of exporting all TGC curve data, this sequence reduces the amount of TGC curve data, reduces the capacity requirement for the storage device, improves the export efficiency, and this method corrects the initial gain value corresponding to each sampling interval to the gain value in the set gain sequence, ensuring that the gain values are of the same precision and improving the data consistency. Description of the Drawings
[0041] Figure 1 It is a flowchart of the TGC data consistency processing method provided by the present invention;
[0042] Figure 2 It is a TGC curve without correction key points included during import provided by the present invention;
[0043] Figure 3 It is the user dragging Figure 2 a certain point on the TGC curve in [the figure] to form a curve;
[0044] Figure 4 It is a TGC curve with correction key points included during import provided by an embodiment of the present invention;
[0045] Figure 5 It is a TGC curve after the user drags the correction key points provided by an embodiment of the present invention;
[0046] Figure 6 It is a schematic structural diagram of a terminal device provided by the present invention.
[0047] The text annotations in the figure are indicated as:
[0048] 700, computer system; 701, CPU; 702, ROM; 703, RAM; 704, bus; 705, I / O interface; 706, input part; 707, output part; 708, storage part; 709, communication part; 710, driver; 711, removable medium. Specific Embodiments
[0049] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, rather than limiting the invention. Additionally, it should be noted that for ease of description, only parts related to the invention are shown in the drawings.
[0050] It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the drawings and embodiments.
[0051] Embodiment 1
[0052] Just as the technical problems mentioned in the background art, the present invention proposes a TGC data consistency processing method, as Figure 1 shown, including the following steps:
[0053] S1. Construct a TGC coordinate system, where the horizontal axis of the TGC coordinate system includes multiple sampling points representing depth, and the vertical axis includes a gain sequence, and the gain sequence includes multiple gain values;
[0054] Among them, this solution can be executed through an acoustic experimental platform. The horizontal axis represents depth, and the vertical axis represents the gain value. The gain value is set according to the accuracy of the acoustic experimental platform. Exemplarily, the horizontal axis includes 8,192 sampling points, and the abscissa corresponding to each sampling point is an integer, taking values (0, 1, 2... 8,192); the system accuracy is one decimal place. Optionally, the gain sequence is (0.1, 0.2, 0.3... 32), and the difference between any two adjacent gain values in the gain sequence is set according to the accuracy of the acoustic experimental platform.
[0055] S2. Divide the horizontal axis into multiple sampling intervals, and the ordinates corresponding to the sampling points in each sampling interval are the same;
[0056] In the scenario of ultrasonic detection, by touching the skin with a handheld probe, acoustic wave signals with different vibration frequencies can be received. The greater the depth, the greater the attenuation of the acoustic wave. To ensure the consistency of the echo intensity, gain compensation needs to be performed on the echo signals at different depths. According to engineering necessity and accuracy requirements, it is set that the gains corresponding to similar depths are equal. Exemplarily, every 128 sampling points on the abscissa correspond to one ordinate, and the number of sampling intervals is 64, which are [0~127], [128~255], [256~383]... respectively.
[0057] S3. Receive multiple key point position information, and construct a TGC curve according to the key point position information, where the key point position information includes the abscissa and ordinate of the key points selected by the user;
[0058] Among them, the acoustic experimental platform includes a display interface that can display the TGC coordinate system, and the user can select key points on the TGC coordinate system through the mouse.
[0059] In a preferred embodiment, after receiving the multiple key point position information and before constructing the TGC curve according to the key point position information, the following steps are further included:
[0060] S31. Obtain the sampling points of each sampling interval according to the sampling point setting strategy;
[0061] S32. When the abscissa of the key point does not correspond to the abscissa of any of the sampling points, adsorb the key point so that its abscissa is the same as the abscissa of the sampling point closest to it.
[0062] Among them, the sampling point setting strategy is to select a certain sampling point corresponding to each sampling interval as the sampling point. For example, if the left endpoints of each sampling interval are selected as the sampling points, then the sampling points include 0, 128, 256,... The right endpoints can also be selected, or any corresponding sampling points in each sampling interval can be used as the sampling points.
[0063] After receiving multiple key point position information, that is, when the user completes multiple key point selections on the display interface. When the user draws key points on the TGC curve through the display interface, it is possible that the abscissa of the key points does not correspond to the abscissa of the sampling points. For example, if the abscissa of the key point drawn by the user is 127, and the right endpoint of the selected sampling interval is used as the sampling point of each sampling interval, then according to the principle of proximity, the key point is adsorbed to the abscissa of 128. By adsorbing the key points to the abscissa of the sampling point closest to them, all the key points used to construct the TGC curve conform to the sampling points preset, which is beneficial for the system to process the data related to the TGC curve according to fixed and regular sampling points in the subsequent data processing process; in addition, the drawn key points will be displayed on the display interface. When the user draws the key points of the TGC curve, due to the existence of the adsorption mechanism, the user's expectation and the actual visual effect can be consistent.
[0064] After correcting the key points, the TGC curve is obtained through a fitting algorithm. Optionally, the fitting algorithm is a cubic spline interpolation algorithm.
[0065] S4. Obtain the abscissa of the value-taking for each of the sampling intervals according to the value-taking strategy, and obtain the initial gain value corresponding to each of the abscissa of the value-taking according to the TGC curve;
[0066] Wherein, the value-taking strategy is: the abscissa of the sampling points corresponding to all the sampling intervals is the abscissa of the value-taking for each of the sampling intervals.
[0067] That is to say, the value-taking method of the abscissa of the value-taking is not fixed, as long as the value-taking methods of each sampling interval are the same. Optionally, when the left endpoint coordinate of the sampling interval is selected as the abscissa of the value-taking, the abscissa of the value-taking is successively 0, 128, 256.....; when the right endpoint coordinate of the sampling interval is selected as the abscissa of the value-taking, the abscissa of the value-taking is successively 127, 255, 383.....; when the abscissa of the second sampling point from the left in the sampling interval is selected as the abscissa of the value-taking, the abscissa of the value-taking is successively 1, 129, 257....:
[0068] S5. When the initial gain value does not correspond to any of the gain values in the gain sequence, correct the initial gain value to the gain value closest to it;
[0069] Among them, since the TGC curve is an arc, when the ordinate of the point on the TGC curve corresponding to the abscissa of the value is not any gain value in the gain sequence, this ordinate is corrected to a gain value according to the principle of proximity to meet the requirements of system accuracy. For example, if the abscissa of the value is 127 and the initial gain value obtained according to the TGC curve is 0.18, and as described above, the gain sequence is (0.1, 0.2, 0.3... 32), the initial gain value is corrected to the closest 0.2. Thus, it is ensured that all gain values corresponding to the abscissa of the value meet the requirements of system accuracy, improving the data consistency.
[0070] S6. Obtain the TGC discrete data sequence, where the TGC discrete data sequence includes multiple gain values corresponding to the abscissa of the value, and the number of gain values is the same as the number of sampling intervals.
[0071] Among them, the TGC discrete data sequence format can be any one of TXT, CSV, etc., and includes 64 gain values. Compared with the original 8192 sampling points corresponding to 8192 gain values, the data volume is significantly reduced, and the gain values in each TGC discrete data sequence meet the requirements of system accuracy and rules, maintaining data consistency.
[0072] The above is the process of TGC curve data export. In some scenarios, when scientific researchers optimize the exported data after data calculation, they still need to import the corrected data into the acoustic experiment platform to observe the optimization results. Therefore, data import is involved, and the processing method also includes an import method. The import method includes the following steps:
[0073] S7. Receive the user discrete data sequence, including multiple gain values to be imported. The user discrete data sequence is set by the user or is the TGC discrete data sequence modified by the user;
[0074] Among them, the user discrete data sequence can be the TGC discrete data sequence exported on this acoustic experiment platform, or a set of data obtained by the user through software code or software editing, and can be in excel format, txt format, csv format, etc., as long as it meets the requirements of the acoustic experiment platform.
[0075] S8. According to the data screening strategy, correct the user discrete data sequence to an updated discrete data sequence. The updated discrete data sequence includes multiple updated gain values; the updated discrete data sequence meets the requirements of system import; the data screening strategy includes the following methods:
[0076] S81. Judge whether the number of gain values to be imported in the user discrete data sequence is equal to the number of sampling intervals formed by partitioning;
[0077] S82. When they are equal, if it is determined that the to-be-imported gain value is greater than the largest gain value in the gain sequence or less than the smallest gain value in the gain sequence, correct the to-be-imported gain value to the edge value of the gain sequence to form the updated gain value;
[0078] For example, as described above, if 8192 sampling points are divided into 64 sampling intervals with 128 points in each group, the exported TGC discrete data sequence includes 64 gain values. When the number of to-be-imported gain values in the user discrete data sequence to be imported is not 64, the system cannot recognize this group of data, and thus stops the import.
[0079] When the number of to-be-imported gain values is 64, the import is allowed. After importing the user discrete data sequence, it is necessary to first determine whether the to-be-imported gain values meet the system requirements. As described above, the gain sequence is (0.1, 0.2, 0.3... 32), that is, the to-be-imported gain value cannot be greater than 32 or less than 0.1. When it is greater than 32, correct the to-be-imported gain value to 32, and when it is less than 0.1, correct the to-be-imported gain value to 0.1.
[0080] In a preferred embodiment, after they are equal, the following steps are further included:
[0081] S83. When it is determined that the precision of each to-be-imported gain value does not meet the system preset precision, correct the to-be-imported gain value to the updated gain value to meet the system preset precision.
[0082] That is, when the user discrete data sequence meets the system's quantity requirements and size requirements, it is also necessary to determine whether it meets the precision requirements. If not, correct it to a value that meets the system requirements. Among them, the system preset precision is one decimal place as described above. For example, if after user optimization, a certain to-be-imported gain value changes to 1.11, it does not meet the system preset precision and needs to be corrected to 1.1. In summary, when importing data, it is necessary to first judge and correct the data. After the correction meets the system requirements, the consistency of the imported and exported data is maintained.
[0083] S9. Receive the updated discrete data sequence, inversely deduce the updated gain value or the to-be-imported gain value corresponding to the abscissa of the value taken in each sampling interval, and generate and display the TGC curve.
[0084] Among them, through the same value-taking strategy, the abscissa of the value taken in each sampling interval can be obtained. The updated discrete data sequence includes the to-be-imported gain value or the updated gain value corresponding to each abscissa of the value taken. Furthermore, the TGC curve can be obtained and displayed on the display interface for the user to view, as Figure 2 shown.
[0085] In a preferred embodiment, after receiving the updated discrete data sequence and obtaining the updated gain values or the gain values to be imported corresponding to the abscissas of the sampling intervals by backtracking, the following steps are further included:
[0086] S91. Obtain a plurality of correction key points from the updated discrete data sequence according to the key point value-taking strategy;
[0087] Optionally, the key point value-taking strategy includes: taking the data at the starting point, the 1 / 2 point, the 1 / 4 point, the 1 / 8 point, and the midpoint in the updated discrete data sequence as the ordinates of the correction key points, and then backtracking through the value-taking strategy to obtain the abscissas of the correction key points, thereby determining the correction key points.
[0088] S92. Generate and display a TGC curve, and the correction key points are included on the TGC curve; wherein, the correction key points are marked on the TGC curve in the form of hollow circles, as Figure 4 shown.
[0089] S93. Receive the correction position information of the correction key points, and the correction position information is formed by the user dragging the correction key points;
[0090] wherein, the correction position information is the abscissa and ordinate information of the correction key points after being dragged by the user;
[0091] S94. Obtain the sampling interval where the correction key point is located, and record it as the correction sampling interval;
[0092] S95. Correct the TGC curve corresponding to the correction sampling interval according to the correction position information to obtain a corrected TGC curve.
[0093] That is, when correcting the TGC curve by dragging the correction key points, except that the TGC curve corresponding to the correction sampling interval remains unchanged, only the TGC curve corresponding to the correction sampling interval where the correction key point is located is corrected. Under the limitation of the fixed curves on both sides, the obtained corrected TGC curve changes less compared with the original TGC curve, as Figure 5 shown; however, when there is no correction key point set on the TGC curve, if the user wants to correct by dragging a certain point on the curve, since there is no limitation of the fixed curves on both sides, the entire curve will change greatly due to the position information of this point, as Figure 3 shown, thus losing the reference value of the original TGC curve. Among them, Figures 2 - 5 the abscissa is the sampling point, with the unit of div, and the ordinate is the gain value, with the unit of dB.
[0094] In summary, the present invention proposes a method for exporting TGC curve data and importing data to generate a TGC curve, which reduces the requirement for the storage device capacity by reducing the exported data; the exported data and the imported data formats are completely compatible, improving the readability and consistency of the data; through the adsorption mechanism and the integrated import and export solution, it not only ensures the flexibility of free drawing by users, but also ensures the accuracy of the exported data.
[0095] Embodiment 2
[0096] Based on Embodiment 1, the present invention provides a TGC data consistency export system for implementing the TGC data consistency processing method as described above. The processing system includes:
[0097] A first construction module configured to construct a TGC coordinate system. The horizontal axis of the TGC coordinate system includes multiple sampling points representing depths, and the vertical axis includes a gain sequence, and the gain sequence includes multiple gain values;
[0098] The first construction module is further configured to equally divide the horizontal axis into multiple sampling intervals, and the ordinates corresponding to the sampling points within each sampling interval are the same;
[0099] A second construction module configured to receive multiple key point position information and construct a TGC curve according to the key point position information, where the key point position information includes the abscissa and ordinate of the key points drawn by the user;
[0100] An analysis module configured to obtain the value-taking abscissas within each sampling interval according to the value-taking strategy and obtain the initial gain values corresponding to the value-taking abscissas according to the TGC curve;
[0101] An adsorption module configured to, when the initial gain value does not correspond to any of the gain values in the gain sequence, adsorb the initial gain value to the nearest gain value;
[0102] A storage module configured to obtain a TGC discrete data sequence, where the TGC discrete data sequence includes multiple gain values corresponding to the value-taking abscissas, and the number of gain values is the same as the number of sampling intervals.
[0103] Embodiment 3
[0104] As Figure 6As shown, the computer system 700 of the terminal device includes a CPU 701, which can perform various appropriate actions and processes according to the program stored in the ROM 702 or the program loaded from the storage section 708 into the RAM 703. In the RAM 703, various programs and data required for system operations are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An I / O interface 705 is also connected to the bus 704. The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read from it can be installed into the storage section 708 as needed.
[0105] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart Figure 1 can be implemented as a computer software program. For example, Embodiment 3 of the present invention includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication section, and / or installed from the removable medium. When the computer program is executed by the CPU 701, the above functions defined in the computer system 700 are executed.
[0106] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present invention, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, in which the computer-readable program code is carried. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and this computer-readable medium can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments 3 of the present invention. In this regard, each block in the flowchart or block diagram can represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks can occur in a different order than that marked in the accompanying drawings. For example, two consecutively represented blocks can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0108] As another aspect, the present invention also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device realizes the TGC data consistency processing method as described in the above embodiments.
[0109] For example, the electronic device may implement as Figure 1 shown in: Step S1. Construct a TGC coordinate system, the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, and the gain sequence includes a plurality of gain values; Step S2. Divide the horizontal axis into a plurality of sampling intervals equally, and the ordinates corresponding to the sampling points in each sampling interval are the same; Step S3. Receive a plurality of key point position information, and construct a TGC curve according to the key point position information, wherein the key point position information includes the abscissa and ordinate of the key points drawn by the user; Step S4. Obtain the abscissa of the value-taking for each sampling interval according to the value-taking strategy, and obtain the initial gain value corresponding to each abscissa of the value-taking according to the TGC curve; Step S5. When the initial gain value does not correspond to any of the gain values in the gain sequence, correct the initial gain value to the gain value closest to it; Step S6. Obtain a TGC discrete data sequence, and the TGC discrete data sequence includes a plurality of gain values corresponding to the abscissa of the value-taking, and the number of gain values is the same as the number of sampling intervals.
[0110] It should be noted that although several modules or units of a device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments disclosed in the present invention, the features and functions of the two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided and embodied by a plurality of modules or units.
[0111] In addition, although the steps of the method in the present invention are described in a specific order in the drawings, this does not require or imply that these steps must be executed in this specific order, or that all the steps shown must be executed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.
[0112] Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware.
[0113] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles applied. Those skilled in the art should understand that the scope of the invention involved in the present invention is not limited to the technical solution formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the technical solution formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present invention.
Claims
1. A TGC data consistency processing method, characterized in that: The processing method includes an export method, and the export method includes the following steps: Constructing a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes a plurality of gain values; The horizontal axis is equally divided into a plurality of sampling intervals, and the vertical coordinates corresponding to the sampling points in each sampling interval are the same; Receiving multiple key point position information, and constructing a TGC curve according to the key point position information, wherein the key point position information includes the horizontal coordinate and the vertical coordinate of the key point drawn by the user; Acquire the value horizontal coordinate of each sampling interval according to the value acquisition strategy, and obtain the initial gain value corresponding to each value horizontal coordinate according to the TGC curve; When the initial gain value does not correspond to any of the gain values in the gain sequence, correcting the initial gain value to the gain value closest thereto; Obtaining a TGC discrete data sequence, wherein the TGC discrete data sequence includes a plurality of gain values corresponding to the value horizontal coordinates, and the number of the gain values is the same as the number of the sampling intervals; After receiving the plurality of key point position information and before constructing the TGC curve according to the key point position information, the following steps are also included: According to the sampling point setting strategy, the sampling points of each sampling interval are obtained; When the horizontal coordinate of the key point does not correspond to the horizontal coordinate of any of the sampling points, the key point is adsorbed so that its horizontal coordinate is the same as the horizontal coordinate of the sampling point closest to it; The value-taking strategy is: the horizontal coordinates of the sampling points corresponding to all the sampling intervals are the value-taking horizontal coordinates of each of the sampling intervals.
2. The TGC data consistency processing method according to claim 1, characterized in that: The processing method also includes an import method, and the import method includes the following steps: Receiving a user discrete data sequence, including a plurality of gain values to be imported, wherein the user discrete data sequence is set by a user or is the TGC discrete data sequence modified by a user; According to the data screening strategy, the user discrete data sequence is modified to be an updated discrete data sequence, wherein the updated discrete data sequence includes a plurality of updated gain values; and the updated discrete data sequence meets the requirements of system import; An updated discrete data sequence is received, and the updated gain value or the gain value to be imported corresponding to the value abscissa of each sampling interval is obtained by reverse calculation, and a TGC curve is generated and displayed.
3. The TGC data consistency processing method according to claim 2, characterized in that: The data screening strategy includes the following steps: Determining whether the number of gain values to be introduced in the user discrete data sequence is equal to the number of the sampling intervals formed by division; When the two are equal, if it is determined that the gain value to be introduced is greater than the largest gain value in the gain sequence, or less than the smallest gain value in the gain sequence, the gain value to be introduced is corrected to the edge value of the gain sequence to form the updated gain value.
4. The TGC data consistency processing method according to claim 3 is characterized in that: When the two are equal, the following steps are also included: When it is determined that the accuracy of each of the gain values to be imported does not meet the system preset accuracy, the gain value to be imported is corrected to the updated gain value to meet the system preset accuracy.
5. The TGC data consistency processing method according to claim 2, characterized in that: After receiving the updated discrete data sequence and inversely calculating the updated gain value corresponding to the horizontal coordinate of each sampling interval, the following steps are also included: According to the key point value selection strategy, a plurality of modified key points are obtained in the updated discrete data sequence; Generating and displaying a TGC curve, wherein the TGC curve includes the correction key point; receiving correction position information of a correction key point, wherein the correction position information is formed by a user dragging the correction key point; Obtain the sampling interval where the correction key point is located, and record it as the correction sampling interval; The TGC curve corresponding to the corrected sampling interval is corrected according to the corrected position information to obtain a corrected TGC curve.
6. A TGC data consistency processing system, characterized in that: The processing system comprises: A first construction module, wherein the construction module is configured to construct a TGC coordinate system, wherein the horizontal axis of the TGC coordinate system includes a plurality of sampling points representing depths, and the vertical axis includes a gain sequence, wherein the gain sequence includes a plurality of gain values; The first construction module is further configured to equally divide the horizontal axis into a plurality of sampling intervals, and the vertical coordinates corresponding to the sampling points in each sampling interval are the same; A second construction module, the second construction module is configured to receive a plurality of key point position information and construct a TGC curve according to the key point position information, wherein the key point position information includes abscissas and ordinates of key points drawn by a user; An analysis module, wherein the analysis module is configured to obtain the value horizontal coordinates of each sampling interval according to a value strategy, and obtain the initial gain value corresponding to each value horizontal coordinate according to a TGC curve, wherein the value strategy is: the horizontal coordinates of the sampling points corresponding to all the sampling intervals are the value horizontal coordinates of each sampling interval; an adsorption module, wherein the adsorption module is configured to correct the gain value to the gain value closest thereto when the initial gain value does not correspond to any of the gain values in the gain sequence; A storage module, wherein the storage module is configured to obtain a TGC discrete data sequence, wherein the TGC discrete data sequence includes a plurality of gain values corresponding to the value horizontal coordinates, and the number of the gain values is the same as the number of the sampling intervals; The adsorption module is also configured to obtain the sampling points of each sampling interval according to the sampling point setting strategy; when the horizontal coordinate of the key point does not correspond to the horizontal coordinate of any of the sampling points, the key point is adsorbed so that its horizontal coordinate is the same as the horizontal coordinate of the sampling point closest to it.
7. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the TGC data consistency processing method as described in any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the TGC data consistency processing method as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Feature point obtaining and waveform drawing
CN105054925A
Website user behavior analysis method and device
CN111124847A